Composable Function

SpatialColumn

A layout composable that arranges its children in a vertical sequence.

SpatialColumn

Source set: Android
@Composable
@SubspaceComposable
public inline fun SpatialColumn(
    modifier: SubspaceModifier = SubspaceModifier,
    horizontalAlignment: SpatialAlignment.Horizontal = SpatialAlignment.CenterHorizontally,
    depthAlignment: SpatialAlignment.Depth = SpatialAlignment.CenterDepthwise,
    verticalArrangement: SpatialArrangement.Vertical = SpatialArrangement.Center,
    crossinline content: @Composable @SubspaceComposable SpatialColumnScope.() -> Unit,
)

A layout composable that arranges its children in a vertical sequence.

For arranging children horizontally, see SpatialRow.

Parameters

modifier Modifiers to apply to the layout.
horizontalAlignment The default horizontal alignment for child elements within the column.
depthAlignment The default depth alignment for child elements within the column.
verticalArrangement The vertical arrangement of the children.
content The composable content to be laid out vertically.

SpatialColumn

Deprecated

Use SpatialColumn with horizontalAlignment and depthAlignment instead.

Source set: Android
@Composable
@SubspaceComposable
public inline fun SpatialColumn(
    modifier: SubspaceModifier = SubspaceModifier,
    alignment: SpatialAlignment,
    verticalArrangement: SpatialArrangement.Vertical = SpatialArrangement.Center,
    crossinline content: @Composable @SubspaceComposable SpatialColumnScope.() -> Unit,
)

A layout composable that arranges its children in a vertical sequence.

For arranging children horizontally, see SpatialRow.

Parameters

modifier Modifiers to apply to the layout.
alignment The default alignment for child elements within the column.
verticalArrangement The vertical arrangement of the children.
content The composable content to be laid out vertically.

Last updated: