BottomSheet

fun BottomSheet(isVisible: Boolean, modifier: Modifier = Modifier, onDismissRequest: () -> Unit? = null, dismissOnExternalClick: Boolean = true, dismissOnBackPress: Boolean = true, dismissOnSwipe: Boolean = true, isFullScreen: Boolean = true, onPreviewKeyEvent: (KeyEvent) -> Boolean = { false }, onKeyEvent: (KeyEvent) -> Boolean = { false }, styles: BottomSheetStyles = remember { BottomSheetStyles() }, content: @Composable BoxScope.() -> Unit)

Creates a fully customizable BottomSheet

Parameters

isVisible

Whether the modal is visible or not

onDismissRequest

Executes when the user performs an action to dismiss the BottomSheet

dismissOnExternalClick

calls onDismissRequest when clicking on the scrim

dismissOnBackPress

call onDismissRequest when pressing escape or back key

dismissOnSwipe

calls onDismissRequest when swiping the bottom sheet away

isFullScreen

Utilized in Android and iOS. Specifies whether to draw behind the system bars or not

styles

Styles to modify the look of the BottomSheet

content

The content to be displayed inside the popup.