ui/widgets/layout/flex library
Enums
- CrossAxisAlignment
- How children are aligned along the cross axis in a flex layout.
- LayoutDirection
- Layout direction for box splitting.
- MainAxisAlignment
- How children are aligned along the main axis.
Functions
-
getConstraint(
Widget widget, LayoutDirection direction, {int crossSize = 0, Element? element}) → Constraint -
Retrieves the layout constraint for the given
widget. If the optionalelementparameter is provided, we query its intrinsic size by calling the element's polymorphic layout getters. -
splitRect(
Rect area, List< Constraint> constraints, LayoutDirection direction, {MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start}) → List<Rect> -
Partitions
areaalongdirectionaccording toconstraints.