I have a question about `AnimatedNavHost` from Acc...
# compose
s
I have a question about
AnimatedNavHost
from Accompanist. Is the default enter animation different based on the root element of the target composable ? Or I’m missing something ? Is this documented ?
s
I noticed a different entry animation between composables that have a
Column
on top and those that have
Scaffolds
I didn’t specify any animation in the navhost
s
Yeah, there's currently a bug when animating from a Scaffold screen to a non-Scaffold screen. There is https://github.com/google/accompanist/issues/729, but there should probably also be a bug report somewhere.
1
Or … at least I think it's a bug. It seems like something that generally should work, but doesn't really right now.
s
Thank you
i
No, that issue is entirely unrelated
I'd first make sure the size of your AnimatedNavHost isn't changing - i.e., it has a fixed size in whatever contains it. The animations default to being centered in the size so if the size changes, it is going to look different
😮 1
s
You're absolutely right, my bad! I had “fixed” this for our app recently, and did so by wrapping stuff in a Scaffold. But I suppose that worked because Scaffold itself fills the screen size, then?
s
Thank you so much Ian, I will try to check the dimensions of the components. A few weeks ago I posted a question related to this, but I’ll close it or put a reference to your message.