A new Flutter project Row and Column Widget
body: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Text('Ini Text 1'),
Text('Ini Text 2'),
Text('Ini Text 3'),
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: <Widget>[
Text('Ini Text 4'),
Text('Ini Text 5'),
Text('Ini Text 6')
],
)
],
),Container only have one child but Row and Column have many children, which is marked by an Array sign : <Widgets>[]
Row and Column also have many properties like :
- crossAxisAlignment
- mainAxisAlignment
- key
- mainAxisSize
- textBaseline
- textDirection
- verticalDirection