The Flexible Widget

Assign available space to the children of the Row and Column widgets using the Flexible widget.

We'll cover the following

We can use the Flexible widget to achieve the same results we get with an Expanded widget. The difference is that, while Expanded forces its child to fill all the available space, Flexible lets the child decide its own size. However, it gives it the possibility to fill the available space.

Get hands-on with 1200+ tech skills courses.