Object

SpatialArrangement

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

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free
Android
public object SpatialArrangement

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

SpatialRow supports horizontal arrangements similar to Row: Row arrangements

SpatialColumn supports horizontal arrangements similar to Column: Column arrangements

Functions

spacedBy

public fun spacedBy(space: Dp): AxisIndependent

Children are placed next to each other with fixed space between them along the main axis.


spacedBy

public fun spacedBy(space: Dp, spatialAlignment: SpatialAlignment.Horizontal): Horizontal

Children are placed next to each other with fixed space between them horizontally and aligned them according to the spatialAlignment given.


spacedBy

public fun spacedBy(space: Dp, spatialAlignment: SpatialAlignment.Vertical): Vertical

Children are placed next to each other with fixed space between them vertically and align them according to the spatialAlignment given.


aligned

public fun aligned(spatialAlignment: SpatialAlignment.Horizontal): Horizontal

Children placed next to each other horizontally and align them according to the spatialAlignment given.


aligned

public fun aligned(spatialAlignment: SpatialAlignment.Vertical): Vertical

Children placed next to each other vertically and align them according to the spatialAlignment.