remember Modal Bottom Sheet State
fun rememberModalBottomSheetState(initialValue: BottomSheetValue, animationSpec: AnimationSpec<Float> = DefaultAnimationSpec, confirmValueChange: (BottomSheetValue) -> Boolean = { true }, skipHalfExpanded: Boolean = false): BottomSheetState
Create and remember a ModalBottomSheetState.
Parameters
initial Value
The initial value of the state.
animation Spec
The default animation that will be used to animate to a new state.
confirm Value Change
Optional callback invoked to confirm or veto a pending value change.
skip Half Expanded
Should ModalBottomSheet expand at HalfExpanded value
fun rememberModalBottomSheetState(initialValue: BottomSheetValue, animationSpec: AnimationSpec<Float> = DefaultAnimationSpec, confirmValueChange: (BottomSheetValue) -> Boolean = { true }, halfExpandedSettings: HalfExpandedSettings): BottomSheetState
Create and remember a ModalBottomSheetState.
Parameters
initial Value
The initial value of the state.
animation Spec
The default animation that will be used to animate to a new state.
confirm Value Change
Optional callback invoked to confirm or veto a pending value change.
half Expanded Settings
How should ModalBottomSheet behave at HalfExpanded state.