https://kotlinlang.org logo
#compose
Title
# compose
r

Rafal

10/20/2023, 10:26 AM
how can I add proper bottom padding in a ModalBottomSheet to make it respect different navigaion options?
Tried using a spacer, but it doesn't work
Copy code
Spacer(Modifier.windowInsetsBottomHeight(WindowInsets.navigationBars))
a

Alexander Zhirkevich

10/20/2023, 11:13 AM
Modifier.navigationBarsPadding() ?
a

ascii

10/20/2023, 1:16 PM
Default window insets (
BottomSheetDefaults.windowInsets
) should already be enough for both status & nav bar. Have you passed in something else?
18 Views