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

cah

10/20/2023, 11:25 AM
Hey I’m confused by
ModalBottomSheet
and window inset consumption I have a single activity application which does not set
setDecorFitsDystemWindow
to
false
and so the insets are consumed Within this activity I have a
ModalBottomSheet
which I don’t want to overlap with status bar but all the returned
WindowInsets
are now zero What is the recommended approach in this case?
This is making even less sense now, if I pass
Modifier.statusBarsPadding()
I get wayyy too much padding, but if I pass
Modifier.windowInsetsPadding(WindowInsets.statusBars)
I get none
why is
statusBarsPadding()
recieving a non zero albeit incorrect window insets?
Any help would be really appreciated
I guess the core question here is if the
ModalBottomSheet
is called within a ui that has already consumed
WindowInsets
why does it go edge to edge if I set it to
fillMaxSize
? Is the
ModalBottomSheet
in a different window?
12 Views