rememberSheetState
fun rememberSheetState(initialValue: SheetValue, animationSpec: AnimationSpec<Float> = SwipeableDefaults.AnimationSpec, confirmStateChange: (SheetValue) -> Boolean = { true }): SheetState
Deprecated
Deprecated alongside BottomSheet component based on Material2. Migrate to Sheet based on Material3.
Replace with
rememberModalBottomSheetState(skipPartiallyExpanded = true, confirmValueChange = confirmStateChange)Content copied to clipboard
Create a SheetState and remember it.
Parameters
initialValue
The initial value of the state.
animationSpec
The default animation that will be used to animate to a new state.
confirmStateChange
Optional callback invoked to confirm or veto a pending state change.