Row
Horizontal layout container
Lays its children out horizontally. children is a plain array. A Row fills its main axis, so mainAxisAlignment has space to work with, and hugs its content vertically. crossAxisAlignment: "stretch" fills that direction too.
Methods
Row(options?)WidgetNodeHorizontal layout container.
- options Any
- mainAxisAlignment MainAxisAlignment
Along the horizontal. Default start.
- crossAxisAlignment CrossAxisAlignment
Across it. Default start.
- children [WidgetNode] required
A plain array. Push to it, map into it, spread it.
- mainAxisAlignment MainAxisAlignment
Examples
Spaced row
Row({
mainAxisAlignment: "spaceBetween",
children: [
Text("Left"),
Text("Right")
]
})