Dialog Layout
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.
enter Transition
Optional, custom enter animation for dialog content.
exit Transition
Optional, custom exit animation for dialog content.
enable Window Dim
Whether to dim the window behind the dialog.
enable Auto Large Screen
Whether to automatically detect large screen and adjust animations.
dim Enter Transition
Optional, custom enter animation for dim layer.
dim Exit Transition
Optional, custom exit animation for dim layer.
dim Alpha
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.
on Dismiss Finished
The callback when the OverlayDialog is completely dismissed.
content
The Composable content of the dialog.