mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-13 21:56:59 +05:30
android: apply padding correctly
This commit is contained in:
parent
ff19b36a9d
commit
73580be6e9
1 changed files with 2 additions and 6 deletions
|
@ -155,8 +155,9 @@ fun LobstersApp(
|
|||
},
|
||||
) { paddingValues ->
|
||||
MaterialMotionNavHost(
|
||||
navController,
|
||||
navController = navController,
|
||||
startDestination = Destinations.startDestination.getRoute(),
|
||||
modifier = Modifier.padding(paddingValues),
|
||||
) {
|
||||
val uri = LobstersApi.BASE_URL
|
||||
composable(
|
||||
|
@ -171,7 +172,6 @@ fun LobstersApp(
|
|||
isPostSaved = viewModel::isPostSaved,
|
||||
reloadPosts = viewModel::refreshHottestPosts,
|
||||
postActions = postActions,
|
||||
modifier = Modifier.padding(bottom = paddingValues.calculateBottomPadding()),
|
||||
)
|
||||
}
|
||||
composable(
|
||||
|
@ -184,7 +184,6 @@ fun LobstersApp(
|
|||
isPostSaved = viewModel::isPostSaved,
|
||||
reloadPosts = viewModel::refreshNewestPosts,
|
||||
postActions = postActions,
|
||||
modifier = Modifier.padding(bottom = paddingValues.calculateBottomPadding()),
|
||||
)
|
||||
}
|
||||
composable(Destinations.Saved.getRoute()) {
|
||||
|
@ -193,7 +192,6 @@ fun LobstersApp(
|
|||
items = savedPosts,
|
||||
listState = savedListState,
|
||||
postActions = postActions,
|
||||
modifier = Modifier.padding(bottom = paddingValues.calculateBottomPadding()),
|
||||
)
|
||||
}
|
||||
composable(
|
||||
|
@ -210,7 +208,6 @@ fun LobstersApp(
|
|||
CommentsPage(
|
||||
postId = postId,
|
||||
getDetails = viewModel::getPostComments,
|
||||
modifier = Modifier.padding(bottom = paddingValues.calculateBottomPadding()),
|
||||
postActions = postActions,
|
||||
)
|
||||
}
|
||||
|
@ -223,7 +220,6 @@ fun LobstersApp(
|
|||
UserProfile(
|
||||
username = username,
|
||||
getProfile = viewModel::getUserProfile,
|
||||
modifier = Modifier.padding(bottom = paddingValues.calculateBottomPadding()),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue