I'm Facing issue with Compose Navigation, When I n...
# compose
j
I'm Facing issue with Compose Navigation, When I navigate to other screen them
BottomNavigation
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"
Copy code
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.