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

Giang

02/03/2023, 2:13 PM
is there anyway to increase the scrolling threshold to collapse the ModalBottomSheet. I have the following set up and it collapses too easily when I move the sheet
Copy code
val modalSheetState = rememberModalBottomSheetState(
            initialValue = ModalBottomSheetValue.Expanded,
            skipHalfExpanded = true,
        )
        ModalBottomSheetLayout(
            sheetState = modalSheetState,
            sheetContent = {
              ...
            }
        ) {}
j

jossiwolf

02/05/2023, 4:42 PM
No, the positional swipe threshold for modal bottom sheets is (in line with other Material components) 56 dp. To maintain a consistent UX, this can't be adjusted. If you file a feature request, we can discuss ways to expose this though :)
g

Giang

02/05/2023, 4:43 PM
Where should I file it?
7 Views