Roberto Leinardi

05/13/2022, 9:36 AM
Hi, I'm trying to port my UI library 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?


05/13/2022, 9:42 AM
All animations can be passed specs and most specs support `delayMillis`that you can just set with something like position * item delay.

Roberto Leinardi

05/13/2022, 10:13 AM
hey thanks! I think this is way easier than messing manually with Coroutines to delay the animation!

Chris Sinco [G]

05/13/2022, 10:51 PM
AnimatedVisibilityScope can be used in a loop for the children of a Column to offset delays: