Bottom Sheet State
constructor(initialValue: BottomSheetValue, density: Density, animationSpec: AnimationSpec<Float> = DefaultAnimationSpec, isSkipHalfExpanded: Boolean = false, confirmValueChange: (BottomSheetValue) -> Boolean)
State of the persistent bottom sheet in ModalBottomSheet.
Parameters
initial Value
The initial value of the state.
density
The density that this state can use to convert values to and from dp.
animation Spec
The default animation that will be used to animate to a new state.
is Skip Half Expanded
Should ModalBottomSheet expand at HalfExpanded value
confirm Value Change
Optional callback invoked to confirm or veto a pending state change.
constructor(initialValue: BottomSheetValue, density: Density, animationSpec: AnimationSpec<Float> = DefaultAnimationSpec, halfExpandedSettings: HalfExpandedSettings = HalfExpandedSettings.Fraction(0.5f), confirmValueChange: (BottomSheetValue) -> Boolean)
Parameters
initial Value
The initial value of the state.
density
The density that this state can use to convert values to and from dp.
animation Spec
The default animation that will be used to animate to a new state.
half Expanded Settings
How should ModalBottomSheet behave at HalfExpanded state.
confirm Value Change
Optional callback invoked to confirm or veto a pending state change.