Absolute

@Immutable
object Absolute

Properties

Link copied to clipboard

Place children such that they are as close as possible to the middle of the Row.

Link copied to clipboard

Place children horizontally such that they are as close as possible to the left edge of the Row.

Link copied to clipboard

Place children horizontally such that they are as close as possible to the right edge of the Row.

Link copied to clipboard

Place children such that they are spaced evenly horizontally, including free space before the first child and after the last child, but half the amount of space existing otherwise between two consecutive children.

Link copied to clipboard

Place children such that they are spaced evenly across the main axis, without free space before the first child or after the last child.

Link copied to clipboard

Place children such that they are spaced evenly across the main axis, including free space before the first child and after the last child.

Functions

Link copied to clipboard

Place children horizontally one next to the other and align the obtained group according to an alignment.

Link copied to clipboard

Place children such that each two adjacent ones are spaced by a fixed space distance across the main axis. The spacing will be subtracted from the available space that the children can occupy.

Place children horizontally such that each two adjacent ones are spaced by a fixed space distance. The spacing will be subtracted from the available width that the children can occupy. An alignment can be specified to align the spaced children horizontally inside the parent, in case there is empty width remaining.

@Stable
fun spacedBy(space: Int, alignment: Alignment.Vertical): Arrangement.Vertical

Place children vertically such that each two adjacent ones are spaced by a fixed space distance. The spacing will be subtracted from the available height that the children can occupy. An alignment can be specified to align the spaced children vertically inside the parent, in case there is empty height remaining.