Hi guys, I'm facing an issue with compose `navigation-animation` : When I interrupt the transition ...
t
Hi guys, I'm facing an issue with compose
navigation-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.
โž• 2
๐Ÿงต 1
The List screen has default transitions. The Details screen has these transitions:
Copy code
enterTransition = {
    slideIntoContainer(
        AnimatedContentScope.SlideDirection.Up,
        animationSpec = tween(400)
    )
},
popExitTransition = {
    slideOutOfContainer(
        AnimatedContentScope.SlideDirection.Down,
        animationSpec = tween(200)
    )
},
@Oleksandr Balan @Zoltan Demant Sorry guys, does the โž• mean you want more info?
z
Just recognizing that I'm experiencing the same thing! If I recall correctly, there was a discussion about this a while back - I'll see if I can find it tomorrow :)
t
Thanks @Zoltan Demant appreciate it ๐Ÿ™Œ
i
Yep, we had looked into this particular issue in https://github.com/google/accompanist/issues/1100 and found that it is indeed an issue in
AnimatedContent
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, unfortunately
z
@Tiago Nunes I couldnt find it, but what Ian mentioned is spot on ๐Ÿ‘Œ๐Ÿฝ
f
Please upvote the google issue if you have this problem ๐Ÿ™
t
Thanks guys!