mainAxisSize property

MainAxisSize? mainAxisSize
final

How much space should be occupied in the main axis.

After allocating space to children, there might be some remaining free space. This value controls whether to maximize or minimize the amount of free space, subject to the incoming layout constraints.

If some children have a non-zero flex factors (and none have a fit of FlexFit.loose), they will expand to consume all the available space and there will be no remaining free space to maximize or minimize, making this value irrelevant to the final layout.

Implementation

final MainAxisSize? mainAxisSize;