Colton Idle
11/10/2021, 2:53 AMModalBottomSheetLayout
?Tin Tran
11/10/2021, 4:14 AMconfirmStateChange
and reject if the status change to HalfExpanded
. Once you do that the user have to swipe longer distance to close the bottom sheet.
Another way is to extend the ModalBottomSheetState
and set is isHalfExpandedEnabled
to falseColton Idle
11/10/2021, 5:32 AMColton Idle
11/10/2021, 5:35 AMval bottomSheetState =
rememberModalBottomSheetState(initialValue = ModalBottomSheetValue.Hidden,
confirmStateChange = {modalBottomSheetValue: ModalBottomSheetValue ->
false
})
Going to look up more docs/source nowColton Idle
11/10/2021, 5:38 AMrememberModalBottomSheetState(ModalBottomSheetValue.Hidden, confirmStateChange = {
it != ModalBottomSheetValue.HalfExpanded
})
Colton Idle
11/10/2021, 5:39 AMTin Tran
11/10/2021, 5:51 AM