PaneScaffoldDirective

Class

Common
@ExperimentalMaterial3AdaptiveApi
class PaneScaffoldDirective(
    val contentPadding: PaddingValues,
    val maxHorizontalPartitions: Int,
    val horizontalPartitionSpacerSize: Dp,
    val maxVerticalPartitions: Int,
    val verticalPartitionSpacerSize: Dp,
    val excludedBounds: List<Rect>
)

Top-level directives about how a pane scaffold should be arranged and spaced, like how many partitions the layout can be split into and what should be the gutter size.

Parameters

contentPaddingSize of the paddings between the panes and the outer bounds of the layout.
maxHorizontalPartitionsthe max number of partitions along the horizontal axis the layout can be split into.
horizontalPartitionSpacerSizeSize of the spacers between horizontal partitions. It's equivalent to the left/right margins the horizontal partitions.
maxVerticalPartitionsthe max number of partitions along the vertical axis the layout can be split into.
verticalPartitionSpacerSizeSize of the spacers between vertical partitions. It's equivalent to the top/bottom margins of the vertical partitions.
excludedBoundsthe bounds of all areas in the window that the layout needs to avoid displaying anything upon it. Usually these bounds represent where physical hinges are.