And another question: I implemented the shown navigation transition by having a upper nav host and a lower nav host. The lower nav host is wrapped inside a scaffold, which is a composable in the upper nav host. I know that it is always recommended to not use nested nav hosts and instead conditionally show the top and bottom bar in the scaffold. However, I want this specific transition, which scales in the second screen above the top and bottom bar of the first screen. As far as I'm concerned, this is not possible by using a single nav host inside a scaffold. Am I wrong / is there an alternative?
Also, if having multiple nav hosts is the solution, what is the proper way to pop the back stack? Use
? Use a different nav controller based on the screen? Something different?
1 year ago
I know that it is always recommended to not use nested nav hosts and instead conditionally show the top and bottom bar in the scaffold.
If this is the recommendation, then I’m curious what is the recommended way to share a common toolbar (with its own animation on transition) and then animate the rest of the screen in a different wayExample attached