https://kotlinlang.org logo
#compose-android
Title
# compose-android
y

Yusuf Ibragimov

03/04/2024, 6:22 AM
How I disable ModalBottomSheet swipe down to dismiss funtionality? I don't want to close if user swipe down bottomsheet?
a

Atul Gupta

03/04/2024, 6:45 AM
In
BottomSheetScaffold
there is a method
sheetSwipeEnabled = true|false
here you can disable to swipe to dismiss.
y

Yusuf Ibragimov

03/18/2024, 4:58 AM
I'm using ModalBottomSheet, what is the recommended way for bottom sheets in Android projects?
a

Atul Gupta

03/22/2024, 2:11 PM
Ahh.. it seems this is only possible with the standardBottomSheet and not with the modal bottom sheet. Can you use the standard bottom sheet and apply the content scrim yourself?
y

Yusuf Ibragimov

03/22/2024, 2:13 PM
No but I think, i have to try with standardBottomSheet
👌 1
a

Atul Gupta

03/22/2024, 2:14 PM
Or you can also see if
SheetState(confirmValueChange: (SheetValue) -> Boolean)
is serving your purpose or not
65 Views