DialogLayout

fun DialogLayout(visible: MutableState<Boolean>, enterTransition: EnterTransition? = null, exitTransition: ExitTransition? = null, enableWindowDim: Boolean = true, enableAutoLargeScreen: Boolean = true, dimEnterTransition: EnterTransition? = null, dimExitTransition: ExitTransition? = null, dimAlpha: MutableState<Float>? = null, onDismissFinished: () -> Unit? = null, renderInRootScaffold: Boolean = true, content: @Composable () -> Unit? = null)

Create a dialog layout.

Parameters

visible

The show state controller for this specific dialog.

enterTransition

Optional, custom enter animation for dialog content.

exitTransition

Optional, custom exit animation for dialog content.

enableWindowDim

Whether to dim the window behind the dialog.

enableAutoLargeScreen

Whether to automatically detect large screen and adjust animations.

dimEnterTransition

Optional, custom enter animation for dim layer.

dimExitTransition

Optional, custom exit animation for dim layer.

dimAlpha

Optional, a mutable state to dynamically control the dim layer alpha (0f-1f). When provided, the dim layer will use this alpha value instead of default animations.

onDismissFinished

The callback when the OverlayDialog is completely dismissed.

renderInRootScaffold

Whether to render the dialog in the root (outermost) Scaffold. When true (default), the dialog covers the full screen. When false, it renders within the current Scaffold's bounds.

content

The Composable content of the dialog.