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
contentPadding | Size of the paddings between the panes and the outer bounds of the layout. |
maxHorizontalPartitions | the max number of partitions along the horizontal axis the layout can be split into. |
horizontalPartitionSpacerSize | Size of the spacers between horizontal partitions. It's equivalent to the left/right margins the horizontal partitions. |
maxVerticalPartitions | the max number of partitions along the vertical axis the layout can be split into. |
verticalPartitionSpacerSize | Size of the spacers between vertical partitions. It's equivalent to the top/bottom margins of the vertical partitions. |
excludedBounds | the 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. |