tad
06/19/2021, 12:32 AMtad
06/19/2021, 12:33 AMtad
06/19/2021, 12:33 AMAnimatedContent
and AnimatedVisibility
are working against meDoris Liu
06/19/2021, 1:22 AMDoris Liu
06/19/2021, 1:26 AMAnimatedVisibilityScope
like the example here: https://developer.android.com/reference/kotlin/androidx/compose/animation/AnimatedVisibilityScopetad
06/19/2021, 6:23 AMinitialState
and targetState
to choose the correct ContentTransform, but I only get the current state in the AnimatedVisibilityScope.tad
06/19/2021, 6:26 AMDoris Liu
06/19/2021, 6:32 PMTransition
, and using Transition.AnimatedContent
instead. That way you could read the initial/target state from Transition
in the AnimatedVisibilityScope : https://developer.android.com/reference/kotlin/androidx/compose/animation/package-summary#(androidx.compose.animation[…].Alignment,kotlin.Function2)
AnimatedVisibilityScope
is designed to host additional enter/exit animations from children. So this would be a work around until we add support for more types enter/exit on the ContentTransform level. 🙂 Thanks for the feature request