Alexander Maryanovsky
05/28/2022, 9:56 AMtransitionSpec
in AnimatedContent
. Before you ask why I would need that, the animation I’m doing is conditional - in one case I want slideInFromRight with slideOutToLeft, in another case I want slideInFromLeft with slideOutToRight, and in a third case I just want the content to be replaced with no animation. The transitionSpec is defined by a separate function, so in the third case I want it to return “no-animation”.
Is there a built-in function for that, or do I need to do something silly like a fadeIn/Out with 0 duration tween?Albert Chang
05/28/2022, 12:46 PMEnterTransition.None with ExitTransition.None
Doris Liu
05/28/2022, 5:49 PMZoltan Demant
05/29/2022, 6:20 AM