spacedBy

Holds space pixels between two adjacent children and packs the group against the leading edge. A negative space overlaps them.

Return

an arrangement that reads the same on either axis, so one value serves a Row and a Column.

Parameters

space

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


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

Return

an arrangement that stacks a run of children longer than the row up at its trailing edge rather than running it past.

Parameters

space

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

alignment

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


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

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

Return

an arrangement that stacks a run of children longer than the column up at its bottom edge rather than running it past.

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.