Composable Function

SpatialColumn

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

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free

SpatialColumn

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.
Android
Deprecated Use SpatialColumn with horizontalAlignment and depthAlignment instead.

SpatialColumn

@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.