Arrangement

Used to specify the arrangement of the layout's children in layouts like Row or Column in their main axis direction (horizontal and vertical, respectively).

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

A special value indicating that this element's arrangement will be controlled manually using CSS styles.

Link copied to clipboard
sealed interface Horizontal

Base class for arrangement values that makes sense in a horizontal direction.

Link copied to clipboard

Base class for arrangement values that can be passed in as either horizontal or vertical arrangement parameters.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
sealed interface Vertical

Base class for arrangement values that makes sense in a vertical direction.

Functions

Link copied to clipboard

Arranges the children of the container with a fixed space for both horizontal and vertical orientations. This function is marked as stable, ensuring that its result can be safely used in recompositions.

Arranges the children of the container with a fixed space for vertical orientations. An alignment can be specified to align the spaced children vertically inside the parent, in case there is width remaining.

Arranges the children of the container with a fixed space for vertical orientations. An alignment can be specified to align the spaced children vertically inside the parent, in case there is height remaining.