Azam Khan
08/06/2021, 3:28 PMcomposable
of the bottom nav screens but I'm not sure if my bottom nav animations will work after that. Is there any other way to fix this? Code in thread 🧵Azam Khan
08/06/2021, 3:29 PM// Common scaffold for Bottom Nav Screens
Scaffold(
topBar = { if(currentScreen is BottomNavScreen) TopAppBar(...) },
bottomBar = { if(currentScreen is BottomNavScreen) BottomNavigation(...) }
) {
AnimatedNavHost() {
// Bottom Nav Screens
navigation(route = Main.route, startDestination = BottomNavScreen.Home.route) {
composable(BottomNavScreen.Home.route) { HomeScreen() }
composable(...) { ... }
composable(...) { ... }
}
composable(Search.route, enterTransition = { slideInVertically() }, exitTransition = { slideOutVertically() }) {
// Search Screen
Scaffold(...) { ... }
}
}
}
Ian Lake
08/06/2021, 3:32 PMAnimatedVisibility
or one of the other constructs to animate in/out your barAzam Khan
08/06/2021, 3:33 PMDoris Liu
08/06/2021, 5:32 PMIan Lake
08/07/2021, 2:41 AMSe7eN
08/09/2021, 6:34 PMJason Ankers
09/07/2021, 10:15 AM