SizedBox
Fixed or constrained size box
Forces its child to a width and/or height. Also used as a fixed gap between widgets.
Methods
SizedBox(options?)WidgetNodeA box with fixed dimensions.
- options Any
- width Any
A number of points, or a Size.
- height Any
A number of points, or a Size.
- child WidgetNode
The node inside.
- width Any
Examples
Vertical spacing
Column({ children: [
Text("Above"),
SizedBox({height: Size.fixed(16)}),
Text("Below")
]})