Column
The Column widget arranges its child widgets vertically. It's commonly used to display multiple widgets, one below the other. For example, you might use this widget to show text, an image, and a button placed vertically in your app:
Here’s how the column arranges its children:
Add Column widget
To add a Column widget:
Select the Column widget from the Add Widget Button or add it directly from the widget tree.
Inside the Column, you can add various widgets, and display them in a vertical manner.
Customizing Column Widget
For a column widget, the main axis runs vertically and the cross axis runs horizontally.
Allow Scrolling
If you want to make the Column scrollable, turn this toggle to On. This is On by default, and must be turned Off if you want to make the column unscrollable.
Main Axis Alignment
This determines how the child widgets are aligned along the main axis. You can choose from the following options:
Start This places the children as close to the start of the main axis as possible.
End This places the children as close to the end of the main axis as possible.
Center This places the children as close to the middle of the main axis as possible.
Space Between This places the free space evenly between the children.
Space Around This places the free space evenly between the children as well as half of that space before and after the first and last child.
Space Evenly This places the free space evenly between the children as well as before and after the first and last child.
Cross Axis Alignment
This determines how the child widgets are aligned along the cross axis. The following options are available:
Start This places the children with their start edge aligned with the start side of the cross axis.
End This places the children as close to the end of the cross axis as possible.
Center This places the children so that their centers align with the middle of the cross axis.
Stretch It requires the children to fill the cross axis.
Baseline This places the children along the cross axis such that their baselines match.
Default Properties
You can customize the appearance and behavior of this widget using the various properties available under the Widget Default Properties.
Last updated