Bottom Sheet
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
is Visible
Whether the modal is visible or not
on Dismiss Request
Executes when the user performs an action to dismiss the BottomSheet
dismiss On External Click
calls onDismissRequest when clicking on the scrim
dismiss On Back Press
call onDismissRequest when pressing escape or back key
dismiss On Swipe
calls onDismissRequest when swiping the bottom sheet away
is Full Screen
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.