spacedBy

Holds space between two adjacent children and packs the group against the left edge, whatever the row's ComponentOrientation says. A negative space overlaps them.

Return

an arrangement usable on either axis. In a Column it places children exactly as Arrangement.spacedBy does, a vertical axis having nothing to mirror.

Parameters

space

the gap between adjacent children only, never at the group's edges.


Holds space between two adjacent children, packed left to right in declaration order whatever the row's ComponentOrientation says, and places the group as a whole at alignment along the row. A negative space overlaps them.

Parameters

space

the gap between adjacent children only, never at the group's edges.

alignment

where the group goes in the width left over, resolved against the row's ComponentOrientation the same as it would be for Arrangement.spacedBy; the gaps between the children are unchanged.


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

Holds space between two adjacent children and places the group as a whole at alignment along the column. A negative space overlaps them.

A vertical axis never mirrors, so this is the same arrangement as Arrangement.spacedBy.

Parameters

space

the gap between adjacent children only, never at the group's edges.

alignment

where the group goes in the height left over; the gaps between the children are unchanged.