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

Colton Idle

09/30/2021, 8:02 PM
If I have a full edge to edge app (so my status bar is transparent), and I open up a bottom sheet full screen... it goes all the way up behind the status bar. Where would I add my status bar insets so that the bottom sheet doesn't go all the way to the top?
c

Csaba Kozák

09/30/2021, 10:09 PM
Just simply add it to the
BottomSheet
itself.
c

Colton Idle

09/30/2021, 10:21 PM
Hm. Why did that not work last time. I will give it another go...
Ah. Okay. So I'm using bottomSheet destinations from accompanist. Not sure how to apply padding in that situation.
c

Csaba Kozák

10/01/2021, 7:46 AM
You should still add it to your
BottomSheet
which wraps the
NavHost
c

Colton Idle

10/01/2021, 7:13 PM
But then my entire screen gets inset
t

Tim Malseed

03/02/2022, 11:41 AM
@Colton Idle did you ever work this one out?
c

Colton Idle

03/03/2022, 3:05 PM
I think I did? But I think my solution was to basically create my own bottom sheet composable and apply it there. Then the actual bottom sheet just hosts that composable so i had to adjust the bottom sheet so that it had a transparent background etc. So the bottom sheet is basically a container with no UI associated to it.
4 Views