WARNING: Cushy is in early alpha. This guide doubly so.
Expand
The Expand
widget expands its child to fill as much space as
available.
The Expand widget can be constructed to expand horizontally and/or vertically:
- Expand the child's width and height:
Expand::new
/MakeWidget::expand
- Expand the child's width only:
Expand::horizontal
/MakeWidget::expand_horizontally
- Expand the child's height only:
Expand::vertical
/MakeWidget::expand_vertically