compose-destinations: Cannot switch NavGraphs route from inside a nested Destination

I need help with figuring out how to navigate to a Destination that is in the route above current one/different route. The hierarchy looks somewhat like this

            root
              |
   |------------------|
   |                main
   |                  |
DialogDest        |-------|
                 Dest1  Dest2

I need to navigate to DialogDest from Dest1, is that possible?

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 33 (15 by maintainers)

Most upvoted comments

OR, alternatively, if you really want to have scaffolds on each screen, then remove Scaffold from MainScreen and have each other screen define its own Scaffold.

I tried this way but it will animate all parts including the Scaffold’s top bar and nav bar