I'm using a `AnimatedNavHost` from the Accompanist...
# compose
j
I'm using a
AnimatedNavHost
from the Accompanist library (+latest Compose beta). Even if I disable all animations, e.g.:
Copy code
AnimatedNavHost(
    ...
    enterTransition = { EnterTransition.None },
    exitTransition = { ExitTransition.None },
    popEnterTransition = { EnterTransition.None },
    popExitTransition = { ExitTransition.None },
) {
I see an expand transition when I open a new screen. Can I disable that somehow? I don't even see where this might coming from ๐Ÿ˜…
a
afaik routes can also define their own animations, maybe they set a default value there?
j
I have a nested navigation. I've removed the transition everywhere.
Hmm. When I do a simple sample project I don't get the animation ๐Ÿ˜… seems I have to have a second look
๐Ÿ˜ฌ 1
a
You can try to reduce your code into a minimal state, then Undo until the issue occurs. Maybe there's a Crossfade function on the content?
k
I have the same issue. @jannis did you find a solution to this?
j
Yes. The problem was that the initial Composable of the target destination had a size of 0, instead of filling the whole screen
๐Ÿ™Œ 1
k
Thank you for your answer. I will check it out ๐Ÿ™‚
That was the problem for me also. Thank you for saving me from extra hours of troubleshooting ๐Ÿ™‚
๐Ÿ‘ 1