Tiago Nunes
08/11/2022, 5:50 PMnavigation-animation
:
When I interrupt the transition to another screen by pressing the back button, the animation gets bugged (List screen moves up a bit).
I found this issue tracker link, which is probably the cause: AnimatedContent sets incorrect target animation on interrupt
Has this ever happen to any of you, and is there a solution?
In the video, you can see the expected behaviour happening in the second attempt, and the bug happens in the first and third attempts.Tiago Nunes
08/11/2022, 5:51 PMenterTransition = {
slideIntoContainer(
AnimatedContentScope.SlideDirection.Up,
animationSpec = tween(400)
)
},
popExitTransition = {
slideOutOfContainer(
AnimatedContentScope.SlideDirection.Down,
animationSpec = tween(200)
)
},
Tiago Nunes
08/11/2022, 6:01 PMZoltan Demant
08/11/2022, 6:07 PMTiago Nunes
08/11/2022, 6:08 PMIan Lake
08/11/2022, 11:48 PMAnimatedContent
which can't be worked around at the AnimatedNavHost
level, hence why we filed that issue tracker bug to fix the root issue. I don't know of any workaround, unfortunatelyZoltan Demant
08/12/2022, 4:17 AMFilip Wiesner
08/12/2022, 6:46 AMTiago Nunes
08/12/2022, 11:51 AM