theapache64
03/30/2021, 2:29 PM0.4.0-build178
? animateFloatAsState
doesn't seem to work anymore. 🤔 🧵jim
03/30/2021, 6:20 PMfinishedListener
would previously run upon first composition allowing you to use tween
+ finishedListener
to implement an infinite animation. It appears this is no longer the case. @Doris Liu WAI or bug?Doris Liu
03/30/2021, 6:30 PManimateFloatAsState
would animate (from/to the same target) when it enters composition, and subsequently invokes the finished listener. Now it only animates when target changes.DisposableEffect
Animatable
. Note, it's generally recommended to avoid writing compositions that take more than one pass to converge. Putting state toggle in DisposableEffect
would therefore be an antipattern.theapache64
03/30/2021, 7:14 PMDoris Liu
03/30/2021, 7:17 PM