Important widget Row & Column with Example
In this article, we’re going to learn how to use rows & columns in a flutter with an example. This Topic is very very important in flutter development, without Rows & Columns you cannot build UI. Column A Column widget displays its children vertically. It takes a children property containing an array of List . The children align vertically without taking up the full height of the screen. Each child widget can be embedded in an Expanded widget to fill available space. You can use CrossAxisAlignment, MainAxisAlignment, and MainAxisSize to align and size how much space is occupied on the main axis. Column( crossAxisAlignment: CrossAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.spaceEvenly, mainAxisSize: MainAxisSize.max, children: <Widget>[ Text('Column 1'), Divider(), Text('Column 2'), Divider(), Text('Column 3'), ], ), Row A Row widget displays its children horizontally. It takes a c...