SheetState
State of a sheet composable, such as ModalBottomSheet
Contains states relating to its swipe position as well as animations between state values.
Parameters
The initial value of the state.
The density that this state can use to convert values to and from dp.
Optional callback invoked to confirm or veto a pending state change.
Whether the hidden state should be skipped. If true, the sheet will always expand to the Expanded state and move to the PartiallyExpanded if available, either programmatically or by user interaction.
Constructors
Properties
Functions
Animate the bottom sheet and suspend until it is partially expanded or animation has been cancelled.
Require the current offset (in pixels) of the bottom sheet.
Expand the bottom sheet with animation and suspend until it is PartiallyExpanded if defined else Expanded.