Sergey Y.
10/29/2021, 3:32 PMAnimatedContent
transition to complete? Is there a callback for this?
Well, I found that the AnimatedVisibilityScope
has the transition
attribute with the isRunning
property. Is this the correct way to use it?
I want to fire my action after the animation ends.
Thanks.Doris Liu
10/29/2021, 4:46 PMAnimatedVisibilityScope#Transition
will give you the status of the enter/exit animation on one set of content i.e. the content in that AnimatedVisibilityScope
.
For the overall status of AnimatedContent
, consider creating the AnimatedContent
in a Transition
, using the extension function Transition#Animated Content(...)
. Then you can observe the Transition object for when the animation is finished.