BottomSheetState

Properties

Link copied to clipboard
Link copied to clipboard

Whether the sheet is currently rested at a detent.

Link copied to clipboard

How far the sheet has moved from the bottom of its container.

Link copied to clipboard

A 0 to 1 value representing the progress of a sheet between its first and last detent.

Link copied to clipboard

The SheetDetent that the sheet is heading towards, in case of an animation or drag events.

Functions

Link copied to clipboard
suspend fun animateTo(value: SheetDetent)

Animates the sheet to the given SheetDetent

suspend fun animateTo(value: SheetDetent, velocity: Float = anchoredDraggableState.lastVelocity)
Link copied to clipboard
fun jumpTo(value: SheetDetent)

Instantly moves the sheet to the given SheetDetent without any animations.