BottomSheetDefaults
-
Cmn
@ExperimentalMaterial3Api
object BottomSheetDefaults
Contains the default values used by ModalBottomSheet and BottomSheetScaffold.
Summary
Public functions |
||
|---|---|---|
Unit |
@ComposableThe 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 |
Cmn
|
Shape |
The default shape for bottom sheets in a |
Cmn
|
Color |
The default color of the scrim overlay for background content. |
Cmn
|
Dp |
The default max width used by |
Cmn
|
Dp |
The default peek height used by |
Cmn
|
WindowInsets |
Default insets to be used and consumed by the |
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
ExpandedShape
val ExpandedShape: Shape
The default shape for a bottom sheets in PartiallyExpanded and Expanded states.
SheetMaxWidth
val SheetMaxWidth: Dp
The default max width used by ModalBottomSheet and BottomSheetScaffold
windowInsets
val windowInsets: WindowInsets
Default insets to be used and consumed by the ModalBottomSheet's content.