With a BottomSheetScaffold, is there a way to disa...
# compose-android
b
With a BottomSheetScaffold, is there a way to disallow the user from being able to hide/dismiss the bottom sheet by dragging/swiping, but still allow it to be hidden programmatically (i.e. via sheetState.hide()) I need "show" and "hide" to be programmatic only, but when the sheet is visible, the user should be able to swipe between partial and fully expanded states.
c
I could have sworn that this is possible. I think theres a user gestures disabled flag or something. LET me look!
actually. i think maybe im thinking of the enabled flag on https://composables.com/compose-unstyled/docs/modal-bottom-sheet i try not to use md3 bottom sheets anymore because they always gimme issues. @Alex Styl’s bottom sheets are goat tho
🫡 1
👀 1
b
Yeah, ModalBottomSheeet won't work for my use case. I specifically need the sheet to NOT be modal.
c
oh. The link above has bottom sheets that are not modal either. it works really well!
a
Compose Unstyled has multiple primitives. Here is the bottom sheet one, that works like spotify's mini player or gmap's bottom sheet https://composables.com/compose-unstyled/docs/bottom-sheet