nuhkoca
11/01/2024, 9:29 PMstatusBarsPadding
in the host view. How do I have intrinsic padding that wouldn’t affect dimming? Is it possible at all? Thanks!Stylianos Gakis
11/01/2024, 9:30 PMWindowInsets
parameter which defaults to having WindowInsets.statusBars
for example?nuhkoca
11/01/2024, 9:34 PMModalBottomSheetLayout
. M2 component unfortunately does not accept WindowInsets
as a parameter 😕nuhkoca
11/01/2024, 9:35 PMstatusBarsPadding
so it blocks bottom sheet scrimming completely. I also tried M3 bottom sheet but it works as expected. However, I can’t use M3 at the momentStylianos Gakis
11/01/2024, 9:38 PMnuhkoca
11/01/2024, 9:41 PMstatusBarsPadding
and it affects the bounds of bottom sheet as it seems. To visualize
ModalBottomSheetLayout(
sheetContent = {},
scrimColor = Color.Red,
content = {
Box(Modifier.statusBarsPadding()) -> this does affect the bounds
}
)
Stylianos Gakis
11/01/2024, 9:51 PMBox(Modifier.statusBarsPadding()) {
ScreenContent()
}
Do:
Column() {
Box(Modifier.statusBarsPadding())
ScreenContent()
}
And adjust accordingly thennuhkoca
11/01/2024, 10:02 PMstatusBarsPadding
ends (top white area) or scrim can’t apply to top component which is drag handle? but if so how 🤔my content structure is like
Column {
DragHandle() -> applies statusBarsPadding
Content()
}
Stylianos Gakis
11/01/2024, 10:13 PMStylianos Gakis
11/01/2024, 10:14 PMDragHandle()
does it render all the way to the top as you'd like it to?nuhkoca
11/12/2024, 8:42 PM