Spacer
Flexible space filler
Takes the free space along the main axis, pushing what is on either side of it apart. Spacers in the same stack divide that space between them, in proportion to their flex.
Methods
Spacer(options?)WidgetNodeA flexible spacer.
- options Any
- flex Number
How many shares of the free space this spacer takes, against the other spacers in the same stack. Default 1.
- flex Number
Examples
Push to edges
Row({ children: [
Text("Left"),
Spacer(),
Text("Right")
]})