Content Dialog
fun ContentDialog(modifier: Modifier = Modifier, open: Boolean, title: String? = null, cancellable: Boolean = true, withCloseIcon: Boolean = false, shape: Shape = MaterialTheme.shapes.medium, dismiss: () -> Unit, content: @Composable () -> Unit)
A modular dialog that can be used to display content or confirm actions.
Parameters
modifier
Modifier to be applied to the dialog.
open
Whether the dialog should be displayed.
title
The title of the dialog.
cancellable
Whether the dialog can be dismissed by clicking outside of it.
with Close Icon
Whether the dialog should have a close icon.
dismiss
The function to be called when the dialog is dismissed.
content
The content of the dialog.