BottomSheetDefaults


Contains the default values used by ModalBottomSheet and BottomSheetScaffold.

Summary

Public functions

Unit
@Composable
DragHandle(
    modifier: Modifier,
    width: Dp,
    height: Dp,
    shape: Shape,
    color: Color
)

The optional visual marker placed on top of a bottom sheet to indicate it may be dragged.

Cmn

Public properties

Color

The default container color for a bottom sheet.

Cmn
Dp

The default elevation for a bottom sheet.

Cmn
Shape

The default shape for a bottom sheets in PartiallyExpanded and Expanded states.

Cmn
Shape

The default shape for bottom sheets in a Hidden state.

Cmn
Color

The default color of the scrim overlay for background content.

Cmn
Dp

The default max width used by ModalBottomSheet and BottomSheetScaffold

Cmn
Dp

The default peek height used by BottomSheetScaffold.

Cmn
WindowInsets

Default insets to be used and consumed by the ModalBottomSheet's content.

Cmn

Public functions

DragHandle

@Composable
fun DragHandle(
    modifier: Modifier = Modifier,
    width: Dp = SheetBottomTokens.DockedDragHandleWidth,
    height: Dp = SheetBottomTokens.DockedDragHandleHeight,
    shape: Shape = MaterialTheme.shapes.extraLarge,
    color: Color = SheetBottomTokens.DockedDragHandleColor.value
): Unit

The optional visual marker placed on top of a bottom sheet to indicate it may be dragged.

Public properties

ContainerColor

val ContainerColorColor

The default container color for a bottom sheet.

Elevation

val ElevationDp

The default elevation for a bottom sheet.

ExpandedShape

val ExpandedShapeShape

The default shape for a bottom sheets in PartiallyExpanded and Expanded states.

HiddenShape

val HiddenShapeShape

The default shape for bottom sheets in a Hidden state.

ScrimColor

val ScrimColorColor

The default color of the scrim overlay for background content.

SheetMaxWidth

val SheetMaxWidthDp

The default max width used by ModalBottomSheet and BottomSheetScaffold

SheetPeekHeight

val SheetPeekHeightDp

The default peek height used by BottomSheetScaffold.

windowInsets

val windowInsetsWindowInsets

Default insets to be used and consumed by the ModalBottomSheet's content.