BottomSheet

@Composable
fun BottomSheet(open: Boolean, modifier: Modifier = Modifier, align: Float = 0.5f, canClose: Boolean = true, canOpen: Boolean = true, fullWidth: Boolean = true, modal: Boolean = true, showDragHandle: Boolean = true, onClose: () -> Unit = {}, onOpen: () -> Unit = {}, bottomBar: @Composable () -> Unit = {}, sheet: @Composable () -> Unit = {}, content: @Composable () -> Unit = {})

Creates a org.gnome.adw.BottomSheet which displays a bottom sheet with an optional bottom bar.

Parameters

open

Whether the sheet is currently opened.

modifier

Compose Modifier for layout and styling.

align

Determines where the sheet is placed along the bottom edge.

canClose

Whether it can be closed by clicking outside the sheet or by dragging the handle.

canOpen

Whether it can be opened by clicking or dragging the handle.

fullWidth

Takes the whole width of its container.

modal

Dims the background and makes it inaccessible while the sheet is opened.

showDragHandle

Whether the drag handle is currently shown.

onClose

Callback triggered when the sheet is closed.

onOpen

Callback triggered when the sheet is opened.

bottomBar

A composable widget displayed as the drag handle.

sheet

A composable widget displayed inside the sheet.

content

A composable widget that's displayed underneath the sheet.