Any help? If `ModalBottomSheet` is in the compos...
# compose-android
i
Any help? If
ModalBottomSheet
is in the composition tree in a specific screen, Overlaided (Behind Sheet) Composables not receiving any pointerInputs (Gestures). - (
shouldDismissOnClickOutside = false
) I need a Behaviour such that, While
ModalBottomSheet
is open, I want to interact with other composables behind the Sheet, Is it possible? I see the implementation of ModalBottomSheet, as it is taking control of entire window. Any workaround on this?
j
I think you want a BottomSheetScaffold.
i
Already, I am deeper inside Scaffold, Is it Ok to use another Scaffold?
j
Does your parent scaffold display a bottom bar? If so, your bottom bar using the scaffold I suggested would lie on top of the bottom bar... If you don't have a bottom bar or FAB you should be fine. It might be better to swap your current scaffold with the BottomSheetScaffold. If you need a bottom nav bar you need to think about your interaction with the Bottom Sheet. Is it okay to overlay it or should it always be visible?
i
Bottom Sheet should be on top only (higher z-index), I don't have any Bottom Bar or FAB also, in this particular screen, Behind the Bottom Sheet, I have a Google Map Composable, While Bottom Sheet is Open, I want to interact with Map also (Zoom / Pan / Long Click)
Google Map is filling entire screen, Bottom Sheet is filling 1/3rd of the screen in bottom
j
You can animate the Bottom bar off the screen for the particular screen. Then you would have the screen's content be the child of the BottomSheetScaffold.