Hello, I am following <this> to implement navigati...
# compose
s
Hello, I am following this to implement navigation with bottomBar, now I want to open a child from a list that need to show full screen, I call it a modal, how can I achieve this behaviour? At the moment, using nested navigation, it opens inside the content space, with the bottom bar visible.
i
You can certainly use that same technique to hide/show the bottom bar when the destination changes to your "modal" destination
t
In my NavHost I basically just have any composable that needs a BottomBar wrapped in a Scaffold that contains the bottom bar, and anything else that needs to be full-screen is just a "naked" composable:
Copy code
composable(DetailDestinationScreens.Details.route){
            ItemDetailScreen(getViewModel(), navController)
        }

        composable(BottomNavigationScreens.Home.route){
            Scaffold(bottomBar = { BottomNavigation(navHostController = navController, screens = BottomNavigationScreens.values())}) {
                HomeFeed(getViewModel())
            }
        }