weight & Flexible Sizing
Distribute space proportionally in rows and columns.
Flexible Space
Sometimes you want children to share space, not take fixed sizes. The weight modifier divides leftover room proportionally. ⚖️
Where weight Lives
weight works only inside a Row or Column. It is part of the layout scope those containers provide to their children.
All lessons in this course
- Padding, Size & fillMaxWidth
- Background, Border & Clip
- Why Modifier Order Matters
- weight & Flexible Sizing