HWColumn

Vertical layout of children.

HWColumn

Arranges its children vertically. The cross axis is horizontal, the main axis is vertical. Pair with HWRow and HWFill to build layouts.

HWFill(
  child: HWColumn(
    mainAxisAlignment: HWMainAxisAlignment.spaceEvenly,
    children: [
      HWText.fixed('Hello World'),
      HWFill(
        child: HWRow(
          mainAxisAlignment: HWMainAxisAlignment.spaceBetween,
          children: [HWText.fixed('1'), HWText.fixed('2')],
        ),
      ),
    ],
  ),
)

mainAxisAlignment is implemented with Spacers on both platforms, so non-start values force children to take only their intrinsic size.

Parameters

NameTypeDefaultDescription
childrenList<HWWidget>requiredWidgets stacked top-to-bottom.
crossAxisAlignmentHWCrossAxisAlignment?nullHorizontal alignment of children.
mainAxisAlignmentHWMainAxisAlignment?nullVertical distribution of children.

See HWAlignment for the HWCrossAxisAlignment and HWMainAxisAlignment values.

Platform mapping