Drawer
fun Drawer(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: DrawerStyles = remember { DrawerStyles() }, content: @Composable BoxScope.() -> Unit)
Creates a fully customizable Drawer
Parameters
is Visible
Whether the modal is visible or not
on Dismiss Request
Executes when the user performs an action to dismiss the Drawer
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 Drawer
content
The content to be displayed inside the popup.