Lucas Reis
10/28/2021, 2:10 PMFelix Schütz
10/28/2021, 2:12 PMLucas Reis
10/28/2021, 2:34 PMFelix Schütz
10/28/2021, 2:43 PMNavHost
. The upper NavHost
contains two routes: details
and lower
. The lower NavHost also contains two routes: gallery
and folders
. Each NavHost gets its own NavController
. The lower
route contains a Scaffold
wrapping the lower NavHost
. Then I can use the lower NavController
for interactions with the scaffold and the upper NavHost
when navigating to details
and back.Felix Schütz
10/28/2021, 2:44 PMLucas Reis
10/28/2021, 2:49 PMlower
NavHost from the upper?Lucas Reis
10/28/2021, 2:52 PMFelix Schütz
10/28/2021, 2:54 PMLucas Reis
10/28/2021, 2:55 PMFelix Schütz
10/28/2021, 3:03 PMupperNavController.navigate("lower")
or upperNavController.popBackStack()
. In my use case, this is enough, but further navigation in the lower nav controller might be required.Felix Schütz
10/28/2021, 3:04 PMLucas Reis
10/28/2021, 3:05 PMLucas Reis
10/28/2021, 3:06 PMFelix Schütz
10/28/2021, 3:17 PMIan Lake
10/28/2021, 3:25 PMvisibleEntries
property on NavController to coordinate the showing/hiding of your bottom nav based on what destination you're on? That's exact the use case we describe at https://github.com/google/accompanist/issues/633#issuecomment-942988181Ian Lake
10/28/2021, 3:26 PMFelix Schütz
10/28/2021, 3:28 PMLucas Reis
10/28/2021, 3:42 PMLucas Reis
10/28/2021, 3:43 PMIan Lake
10/28/2021, 3:44 PMLucas Reis
10/28/2021, 3:47 PMLucas Reis
10/28/2021, 3:51 PM