Jaypalsinh Barad
07/29/2024, 6:18 PMBottomNavigation
with hide and update update bottom padding of NavHost
that time it will recompose NavHost
and show startDestination,
this will happening with
• compose = "1.6.11"
• composeNavigation = "2.8.0-alpha08"
Scaffold(
snackbarHost = {
SnackbarHost(snackBarHostState) {
Snackbar(
modifier = Modifier.padding(16.dp)
.imePadding(),
shape = MaterialTheme.shapes.medium
) {
Text(it.visuals.message)
}
}
},
bottomBar = {
BottomNavigation(isBottomBarVisible, currentRoute, navController)
}
) {
paddingValues ->
NavHost(
modifier = Modifier.padding(paddingValues),
navController = navController,
startDestination = startDestination()
) {
welcomeScreen(
onLoginClick = {
navController.navigateToSignIn()
}, onJoinUsClick = {
showMessage("Wait, Soon you will be able to join us")
}
)
}
}
Let me know if any once facing or have solution of this problem.