HWFill

Expands its child to fill the available space along both axes. Most useful as the root of a widget, or inside an HWColumn / HWRow to claim remaining space.

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

Parameters

NameTypeDefaultDescription
childHWWidgetrequiredWidget that should fill the area.

Platform mapping