HWRow

Horizontal layout of children.

HWRow

Arranges its children horizontally. The cross axis is vertical, the main axis is horizontal. The mirror of HWColumn.

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

mainAxisAlignment is implemented with Spacers on both platforms.

Parameters

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

See HWAlignment for the HWCrossAxisAlignment and HWMainAxisAlignment values.

Platform mapping