Class

PaneAdaptedValue.Levitated

Indicates that the associated pane should be levitated with the specified alignment.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free
Common
class Levitated(
        internal val alignment: Alignment,
        internal val scrim: (@Composable () -> Unit)? = null,
        internal val dragToResizeState: DragToResizeState? = null,
    ) : PaneAdaptedValue

Indicates that the associated pane should be levitated with the specified alignment.

Parameters

alignment the alignment of the levitated pane relative to the pane scaffold; the alignment can also be provided as anchoring to a certain alignment line or a certain element in the window. See Alignment for more information.
scrim the scrim to show when the levitated pane is shown to block user interaction with the underlying layout and emphasize the levitated pane; by default it will be null and no scrim will show; to display a scrim, we recommend to use LevitatedPaneScrim as a default implementation.
dragToResizeState the optional state to enable the levitated pane to be resizable by dragging; it will be used to store and control current dragging; see rememberDragToResizeState for more details about how to implement the drag-to-resize behavior.

Secondary Constructors

constructor(
        alignment: Alignment,
        scrim: (@Composable () -> Unit)? = null,
    ) : this(alignment, scrim, null)