WindowDialog

fun WindowDialog(show: Boolean, modifier: Modifier = Modifier, title: String? = null, titleColor: Color = DialogDefaults.titleColor(), summary: String? = null, summaryColor: Color = DialogDefaults.summaryColor(), backgroundColor: Color = DialogDefaults.backgroundColor(), enableWindowDim: Boolean = true, onDismissRequest: () -> Unit? = null, onDismissFinished: () -> Unit? = null, outsideMargin: DpSize = DialogDefaults.outsideMargin, insideMargin: DpSize = DialogDefaults.insideMargin, defaultWindowInsetsPadding: Boolean = true, content: @Composable () -> Unit)

A dialog with a title, a summary, and other contents, rendered at window level without Scaffold.

Use LocalDismissState inside content to request dismissal from inner composables.

Parameters

show

Whether the WindowDialog is shown.

modifier

The modifier to be applied to the WindowDialog.

title

The title of the WindowDialog.

titleColor

The color of the title.

summary

The summary of the WindowDialog.

summaryColor

The color of the summary.

backgroundColor

The background color of the WindowDialog.

enableWindowDim

Whether to enable window dimming when the WindowDialog is shown.

onDismissRequest

Will called when the user tries to dismiss the Dialog by clicking outside or pressing the back button.

onDismissFinished

The callback when the WindowDialog is completely dismissed.

outsideMargin

The margin outside the WindowDialog.

insideMargin

The margin inside the WindowDialog.

defaultWindowInsetsPadding

Whether to apply default window insets padding to the WindowDialog.

content

The Composable content of the WindowDialog.