OverlayListPopup

fun OverlayListPopup(show: Boolean, popupModifier: Modifier = Modifier, popupPositionProvider: PopupPositionProvider = ListPopupDefaults.DropdownPositionProvider, alignment: PopupPositionProvider.Align = PopupPositionProvider.Align.Start, enableWindowDim: Boolean = true, onDismissRequest: () -> Unit? = null, onDismissFinished: () -> Unit? = null, maxHeight: Dp? = null, minWidth: Dp = ListPopupDefaults.MinWidth, renderInRootScaffold: Boolean = true, content: @Composable () -> Unit)

A popup with a list of items.

Parameters

show

Whether the OverlayListPopup is shown.

popupModifier

The modifier to be applied to the OverlayListPopup.

popupPositionProvider
alignment

The alignment of the OverlayListPopup.

enableWindowDim

Whether to enable window dimming when the OverlayListPopup is shown.

onDismissRequest

The callback when the OverlayListPopup is dismissed.

onDismissFinished

The callback when the OverlayListPopup is completely dismissed (after exit animation).

maxHeight

The maximum height of the OverlayListPopup. If null, the height will be calculated automatically.

minWidth

The minimum width of the OverlayListPopup.

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 with position compensation.

content

The Composable content of the OverlayListPopup. You should use the ListPopupColumn in general.