HWAlignment

Cross- and main-axis alignment enums for HWColumn and HWRow.

HWAlignment

Alignment enums consumed by HWColumn and HWRow.

The cross-axis is the axis perpendicular to the layout direction:

  • HWColumn (vertical) — cross-axis is horizontal, main-axis is vertical.
  • HWRow (horizontal) — cross-axis is vertical, main-axis is horizontal.

HWCrossAxisAlignment

ValueDescription
startAlign children to the cross-axis start.
centerCenter children along the cross-axis.
endAlign children to the cross-axis end.

HWMainAxisAlignment

ValueDescription
startPack children at the main-axis start.
centerCenter children along the main-axis.
endPack children at the main-axis end.
spaceBetweenDistribute children with equal space between them.
spaceEvenlyDistribute children with equal space between, before, and after.

Platform mapping