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
| Name | Type | Default | Description |
|---|---|---|---|
children | List<HWWidget> | required | Widgets stacked top-to-bottom. |
crossAxisAlignment | HWCrossAxisAlignment? | null | Horizontal alignment of children. |
mainAxisAlignment | HWMainAxisAlignment? | null | Vertical distribution of children. |
See HWAlignment for the HWCrossAxisAlignment and HWMainAxisAlignment values.