When using `ModalBottomSheetLayout`, is there any ...
# compose
m
When using
ModalBottomSheetLayout
, is there any way to disable
isHalfExpandedEnabled
'cause I want my bottom sheet to expand to it's content height
isHalfExpandedEnabled
is set internally if the anchors has HalfExpanded
Got it working !!
d
U can modify
confirmStateChange
like this:
Copy code
val sheetState = rememberModalBottomSheetState(
    initialValue = ModalBottomSheetValue.Hidden,
    confirmStateChange = { stateValue -> stateValue != ModalBottomSheetValue.HalfExpanded }
)