Thread
#compose
    f

    Felix Schütz

    1 year ago
    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
    Activity.onBackPressed()
    ? Use a different nav controller based on the screen? Something different?
    pepos

    pepos

    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 way Example attached
    at least with current navigation animation API and with this previous example, I only see the way to go with a nested nav hosts
    f

    Felix Schütz

    1 year ago
    Yeah, true. It would be nice to be able to specify wrapper composables for
    navigation
    functions inside a
    NavHost