PopupLayout

fun PopupLayout(visible: MutableState<Boolean>, enterTransition: EnterTransition? = null, exitTransition: ExitTransition? = null, enableWindowDim: Boolean = true, enableBackHandler: Boolean = true, dimEnterTransition: EnterTransition? = null, dimExitTransition: ExitTransition? = null, renderInRootScaffold: Boolean = true, content: @Composable () -> Unit? = null)

Create a popup layout.

Parameters

visible

The show state controller for this specific popup.

enterTransition

Optional, custom enter animation for popup content.

exitTransition

Optional, custom exit animation for popup content.

enableWindowDim

Whether to dim the window behind the popup.

dimEnterTransition

Optional, custom enter animation for dim layer.

dimExitTransition

Optional, custom exit animation for dim layer.

renderInRootScaffold

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

content

The Composable content of the popup.