should work in RowScope, although it won't automatically change size for you. What is your use case?
➕ 2
Doris Liu
06/02/2021, 6:27 PM
Consider adding
Modifier.animateContentSize
to either
Crossfade
or
Row
if you need the size change to be animated.
y
Yuri Drigin
06/03/2021, 5:07 AM
@Doris Liu Yep. You are right. My mistake. It is wrong import of Crossfade. Should be
Crossfade(targetState = …)
z
ziv kesten
12/28/2021, 2:49 PM
@Doris Liu I am trying to use crossfade to animate text change but the second text, being shorter then the first, makes a jump to be centered at the end of the animation, i would like it to be centered just like the first text.
How can i prevent that?