crossAxisFlex property

int? crossAxisFlex
getter/setter pair

The crossAxisFlex factor to use for this sliver child.

If used outside of a SliverCrossAxisGroup widget, this value has no meaning.

If null or zero, the child is inflexible and determines its own size in the cross axis. If non-zero, the amount of space the child can occupy in the cross axis is determined by dividing the free space (after placing the inflexible children) according to the flex factors of the flexible children.

This value is only used by the SliverCrossAxisGroup widget to determine how to allocate its SliverConstraints.crossAxisExtent to its children.

See also:

Implementation

int? crossAxisFlex;