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')],
),
),
],
),
)
Platform mapping
- iOS: SwiftUI
.frame(maxWidth: .infinity, maxHeight: .infinity). - Android: Glance
GlanceModifier.fillMaxSize()injected into the child.