Is it possible to disable close by drag gesture in...
# compose
e
Is it possible to disable close by drag gesture in the
ModalBottomSheet
? I want to put a long scrollable document in the bottom sheet and it closes instead of scrolling.
m
Correct me if I'm wrong, but doesn't
nestedScroll
handle this?
r
no if the document is inside an
AndroidView
. what about setting
sheetGesturesEnabled
on
ModalBottomSheetLayout
?
e
@Radoslaw Juszczyk I am using
ModalBottomSheet
. No other way except migration to
ModalBottomSheetLayout
?
r
it seems that there is no
sheetGesturesEnabled
for
ModalBottomSheet
they are suggesting some workarounds here but i think it is better to use the
ModalBottomSheetLayout
e
Thank you @Radoslaw Juszczyk!
362 Views