Yep, the main problem I have is that I need a different animation for "pushing" vs. "popping" a composable. I get both
initialState
and
targetState
to choose the correct ContentTransform, but I only get the current state in the AnimatedVisibilityScope.
tad
06/19/2021, 6:26 AM
So I would need to maintain my own Transition state and basically duplicate what AnimatedContent does so I can apply the correct animation in the AnimatedVisibilityScope.
d
Doris Liu
06/19/2021, 6:32 PM
Consider creating your own
Transition
, and using
Transition.AnimatedContent
instead. That way you could read the initial/target state from
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