androidx.compose.material3.adaptive.layout
PaneScaffoldParentDataSince 1.1Experimental
Sealed interface · from org.jetbrains.compose.material3.adaptive:adaptive-layout:1.3.0
No hand-written docs yet.
The parent data passed to pane scaffolds by their contents like panes and drag handles.
sealed interface PaneScaffoldParentData
Properties
preferredWidth
val preferredWidth: Dp
The preferred width of the pane, which is supposed to be set via PaneScaffoldScope.preferredWidth on a pane composable, like AnimatedPane. Note that this won't take effect on drag handle composables with the default scaffold implementations.
preferredHeight
val preferredHeight: Dp
The preferred height of the pane, which is supposed to be set via PaneScaffoldScope.preferredHeight on a pane composable, like AnimatedPane. Note that this won't take effect on drag handle composables with the default scaffold implementations.
paneMarginsSince 1.3
val paneMargins: PaneMargins
The margins that should be applied to the pane.
preferredWidthInProportionSince 1.2
val preferredWidthInProportion: Float
The preferred width of the pane as a proportion to the overall scaffold width, represented as a float value ranging from 0 to 1. It is supposed to be set via PaneScaffoldScope.preferredWidth on a pane composable, like AnimatedPane. Note that this won't take effect on drag handle composables with the default scaffold implementations.
preferredHeightInProportionSince 1.2
val preferredHeightInProportion: Float
The preferred height of the pane as a proportion to the overall scaffold height, represented as a float value ranging from 0 to 1. It is supposed to be set via PaneScaffoldScope.preferredHeight on a pane composable, like AnimatedPane. Note that this won't take effect on drag handle composables with the default scaffold implementations.
isAnimatedPane
val isAnimatedPane: Boolean
true to indicate that the pane is an AnimatedPane; otherwise false. Note that this won't take effect on drag handle composables with the default scaffold implementations.
minTouchTargetSize
val minTouchTargetSize: Dp
The minimum touch target size of the child, which is supposed to be set via PaneScaffoldScope.paneExpansionDraggable on a drag handle component. Note that this won't take effect on pane composables with the default scaffold implementations.
Library docs
The parent data passed to pane scaffolds by their contents like panes and drag handles.