Object

BottomSheetDefaults

Contains the default values used by ModalBottomSheet and BottomSheetScaffold.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free
Common
@ExperimentalMaterial3Api
object BottomSheetDefaults

Contains the default values used by ModalBottomSheet and BottomSheetScaffold.

Properties

Common
val HiddenShape: Shape

The default shape for bottom sheets in a Hidden state.

Common
val ExpandedShape: Shape

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

Common
val ContainerColor: Color

The default container color for a bottom sheet.

Common
val Elevation = SheetBottomTokens.DockedModalContainerElevation

The default elevation for a bottom sheet.

Common
val ScrimColor: Color

The default color of the scrim overlay for background content.

Common
val SheetPeekHeight = 56.dp

The default peek height used by BottomSheetScaffold.

Common
val SheetMaxWidth = 640.dp

The default max width used by ModalBottomSheet and BottomSheetScaffold

Common
Deprecated Renamed as modalWindowInsets.
val windowInsets: WindowInsets

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

Common
val standardWindowInsets: WindowInsets

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

Common
val modalWindowInsets: WindowInsets

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

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,
    )

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