smithc42
10/20/2022, 9:43 PMinitialState
value within AnimatedContent
. Using the AnimatedContent example from the Android docs which slides number up/down based on the previous initialState
, I've tried updateTransition along with animateColor
but I can't find a way to change the text color based on the previous value. Am I missing something obvious here? 🤔Rebecca Franks
10/21/2022, 11:20 AMRebecca Franks
10/21/2022, 11:20 AMRebecca Franks
10/21/2022, 11:23 AMsmithc42
10/21/2022, 11:41 AMAnimatedContent
+ something similar for color transition. The ViewModel approach is the fallback though 🙂Rebecca Franks
10/21/2022, 3:07 PMDoris Liu
10/21/2022, 6:10 PMAnimatedContent
provided the initial/target state in the scope for its content lambda. Please feel free to file a feature request for this. 🙂