Hi, I'm trying to port my UI library <https://gith...
# compose
r
Hi, I'm trying to port my UI library https://github.com/leinardi/FloatingActionButtonSpeedDial/ to Compose but I'm struggling to recreate the Speed Dial animation from the Material Design website (video of the animation). I tried to play with the AnimatedVisibility of the ColumnScope but I don't thin it's possible to replicate the same behavior. Not I'm trying to use coroutines to delay the visibility changes of every action item. Is there a better way to achieve this animation?
t
All animations can be passed specs and most specs support `delayMillis`that you can just set with something like position * item delay.
r
hey thanks! I think this is way easier than messing manually with Coroutines to delay the animation!
c
AnimatedVisibilityScope can be used in a loop for the children of a Column to offset delays: https://developer.android.com/reference/kotlin/androidx/compose/animation/AnimatedVisibilityScope