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

Humaira Naeem Pasha

12/01/2023, 12:06 PM
I’m facing some issues with material 3 ModalBottomSheet window insets. I have edge to edge enabled & if I use the default value of insets i.e;
Copy code
ModalBottomSheet(
windowInsets = BottomSheetDefaults.windowInsets
)
the dialog overlaps with the top edge of the navigation bar. If i pass window insets as 0;
Copy code
ModalBottomSheet(
windowInsets = WindowInsets(0)
)
and pad the sheet content by navigation insets the content still overlaps with the navigation bars. Any idea what could I be missing?
16 Views