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 AMval bottomSheetState =
rememberModalBottomSheetState(initialValue = ModalBottomSheetValue.Hidden,
confirmStateChange = {modalBottomSheetValue: ModalBottomSheetValue ->
false
})
Going to look up more docs/source nowrememberModalBottomSheetState(ModalBottomSheetValue.Hidden, confirmStateChange = {
it != ModalBottomSheetValue.HalfExpanded
})
Tin Tran
11/10/2021, 5:51 AM