Dialog

@Composable
fun Dialog(title: String?, modifier: Modifier = Modifier, contentHeight: Int = 0, contentWidth: Int = 0, followsContentSize: Boolean = false, presentationMode: DialogPresentationMode = DialogPresentationMode.AUTO, onClose: () -> Unit = {}, content: @Composable () -> Unit = {})

Creates a org.gnome.adw.Dialog, an adaptive dialog container.

Parameters

title

The title shown in the dialog header.

modifier

Compose Modifier for layout and styling.

contentHeight

The height of the content.

contentWidth

The width of the content.

followsContentSize

Whether to size content automatically.

presentationMode

Which mode used to display the dialog.

onClose

Callback triggered when the dialog is closed.

content

The composable content to display inside the dialog.