Mehdi Haghgoo
02/23/2021, 2:18 PMKirill Grouchnikov
02/23/2021, 2:22 PMBryan Herbst
02/23/2021, 2:29 PMMehdi Haghgoo
02/23/2021, 2:33 PMKirill Grouchnikov
02/23/2021, 2:35 PMbruno.aybar
02/23/2021, 3:17 PMState
s and snapshot changes, which is a very Compose-y conceptThiago
02/23/2021, 5:12 PMRafs
02/23/2021, 5:30 PMDoris Liu
02/23/2021, 7:54 PMMehdi Haghgoo
02/23/2021, 9:32 PMThiago
02/23/2021, 9:57 PManimate
, animatedFloat
) or animteFloatAsState
have sample with param based only.
A sample in the docs seems not working on alpha12
is animateFloatAsState . I'm changing visible value and the red box still visible. Also the animation is been fired when I toggle the value only.Doris Liu
02/23/2021, 10:41 PManimateFloatAsState
is a state-based animation, which reacts the targetValue
change to fire the animation. The sample seems to have the alpha
modifier and background
reversed, which needs to be fixed. Please feel free to file a bug when things don't work as expected.
Sounds like the API for your use case of 0f->1f->0f could be either Animatable
or rememberInfiniteTransition
depending on what other controls of the animation you might need. 🙂