mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 10:37:05 +05:30
android: ensure saved posts don't draw under bottom nav
This commit is contained in:
parent
9db923daf6
commit
6222152f64
1 changed files with 4 additions and 2 deletions
|
@ -122,7 +122,7 @@ fun LobstersApp(
|
|||
isVisible = navItems.any { it.route == currentDestination },
|
||||
)
|
||||
},
|
||||
) {
|
||||
) { paddingValues ->
|
||||
NavHost(
|
||||
navController,
|
||||
startDestination = Destinations.startDestination.getRoute(),
|
||||
|
@ -146,7 +146,9 @@ fun LobstersApp(
|
|||
listState = savedListState,
|
||||
isSaved = viewModel::isPostSaved,
|
||||
postActions = postActions,
|
||||
modifier = Modifier.nestedScroll(nestedScrollConnection),
|
||||
modifier =
|
||||
Modifier.nestedScroll(nestedScrollConnection)
|
||||
.padding(bottom = paddingValues.calculateBottomPadding()),
|
||||
)
|
||||
}
|
||||
composable(Destinations.Comments.getRoute("{postId}")) { backStackEntry ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue