How to fix broken exit animation while enter animation is in progress in AnimatedVisibility?
I have a view that starts animating as soon as it gets visible. Enter animation is fadeIn+expandIn
, exit animation is fadeOut+shrinkOut
. There is a close button in the view. When it is clicked, I change the visibility to false
so that exit animation is triggered. Animations works correctly unless they overlap.
How to set duration for spring type animationSpec in AnimatedVisibility?
How can I set the duration when spring
type animationSpec
is used in AnimatedVisibility
?