Archie
contentPadding
bottomBar
Scaffold( bottomBar = { AnimatedVisibility( visible = currentBackStack?.arguments?.getString(KEY_ROUTE) == secondScreenRoute ... ) { SomeComposable() } } ) { padding -> val modifier = Modifier.padding(padding) NavHost(navController, startDestination = startRoute) { composable(startRoute) { FirstScreen(modifier) } composable(secondScreenRoute) { // When the bottomBar is shown on this screen // it overlaps the content of second screen SecondScreen(modifier) } ... } }
Doris Liu
A modern programming language that makes developers happier.