styleBottomSheet

fun styleBottomSheet(dragHandle: Boolean = true, peekHeight: (containerHeight: Dp, sheetHeight: Dp) -> Dp? = BottomSheetStyleDefaults.peekHeight, expandInitially: Boolean = false, velocityThreshold: () -> Dp = { 125.dp }, positionalThreshold: (totalDistance: Dp) -> Dp = { 56.dp }, animateShow: Boolean = false, dismissOnBackPress: Boolean = true, dismissOnClickOutside: Boolean = true, scrim: Boolean = true, options: StyleOptions = StyleOptions(), shape: Shape = BottomSheetStyleDefaults.shape, containerColor: Color = BottomSheetStyleDefaults.containerColor, iconColor: Color = BottomSheetStyleDefaults.iconColor, titleColor: Color = BottomSheetStyleDefaults.titleColor, contentColor: Color = BottomSheetStyleDefaults.contentColor): ComposeDialogStyle

the setup of a dialog that shows as a normal dialog popup

Parameters

dragHandle

if true, a drag handle will be shown

peekHeight

the peek height calculation of the bottom sheet

expandInitially

if true, the bottom sheet is initially displayed in expanded state (even if it has a peek height)

velocityThreshold

the velocity threshold of the bottom sheet

positionalThreshold

the positional threshold of the bottom sheet

animateShow

if true, the sheet will be animated on first show

dismissOnBackPress

if true, the dialog can be dismissed by a back press

dismissOnClickOutside

if true, the dialog can be dismissed by clicking outside of its borders

scrim

if true, the dialog will a show a scrim behind it

options

provides custom style options of the dialog

shape

the Shape of the dialog

containerColor

the Color of the container

iconColor

the content Color of the icon

titleColor

the content Color of the title

contentColor

the content Color of the text