brabo-hi
01/19/2022, 7:47 PMNavHost
?brabo-hi
01/19/2022, 7:51 PMNavHost(navController = navController, startDestination = "") {
composable("viewA"){}
composable("viewB")
}
viewB has a bottomNavBar, which means it looks like
Scaffold(){
NavHost(navController, startDestination = Screen.Profile.route, Modifier.padding(innerPadding)) {
composable(Screen.Profile.route) { Profile(navController) }
composable(Screen.FriendsList.route) { FriendsList(navController) }
}
}
brabo-hi
01/19/2022, 7:51 PMNavHost
different from the parent’s NavHost
brabo-hi
01/19/2022, 7:53 PMNavHost(navController = navController, startDestination = "") {
composable("viewA"){}
composable("viewB") {}
Scaffold(){
NavHost(myOwnNavController, startDestination = "Child1") {
composable("Child1") {}
}
}
}
brabo-hi
01/19/2022, 7:54 PMNavHost
and two NavController