Hi everyone, I was playing with the AnimatedVisib...
# compose
b
Hi everyone, I was playing with the AnimatedVisibility() today, and wonder if there is a way to figure out when the animation end. Does anyone know something about this?
d
Have you tried the
AnimatedVisibility(MutableTransitionState, ...)
API yet? You can observe whether the animation has ended via
MutableTransitionState.isIdle
. See: https://developer.android.com/reference/kotlin/androidx/compose/animation/package-summary#AnimatedVisibility(androidx[…]Transition,kotlin.Function1)
1
1
b
@Doris Liu thanks a lot, that is exactly what I was looking for.