Skip to content

Commit

Permalink
fix bottomsheet under navigation (#234)
Browse files Browse the repository at this point in the history
* fix bottomsheet under navigation

* switch to navigationBarsPadding
  • Loading branch information
shalva97 authored Oct 23, 2022
1 parent 8fe5e84 commit c11ade6
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,13 @@ fun HomeScreen(
}

ModalBottomSheetLayout(
modifier = Modifier
.systemBarsPadding(),
sheetState = modalBottomSheetState,
sheetBackgroundColor = if (isSystemInDarkTheme()) DialogBkgDark else DialogBkgLight,
scrimColor = Color.Transparent,
sheetContent = {
SheetLayout(modalBottomSheetState, scope, navigator)
Column(Modifier.navigationBarsPadding()) {
SheetLayout(modalBottomSheetState, scope, navigator)
}
}
) {
Scaffold(
Expand Down Expand Up @@ -161,8 +161,7 @@ fun HomeScreenContent(
modifier = Modifier
.constrainAs(grid) {
bottom.linkTo(parent.bottom)
}
.systemBarsPadding(),
},
contentPadding = PaddingValues(contentPadding),
horizontalArrangement = Arrangement.spacedBy(contentPadding),
verticalArrangement = Arrangement.spacedBy(contentPadding)
Expand Down

0 comments on commit c11ade6

Please sign in to comment.