MultiChildExtensions extension

Commonly used extensions on Lists of Widgets.

on

Methods

toColumn({Key? key, MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start, MainAxisSize mainAxisSize = MainAxisSize.max, CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center, TextDirection? textDirection, VerticalDirection verticalDirection = VerticalDirection.down, TextBaseline? textBaseline}) Widget

Available on List<Widget>, provided by the MultiChildExtensions extension

A widget that arranges its children sequentially along the vertical axis.
toRow({Key? key, MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start, MainAxisSize mainAxisSize = MainAxisSize.max, CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center, TextDirection? textDirection, VerticalDirection verticalDirection = VerticalDirection.down, TextBaseline? textBaseline}) Widget

Available on List<Widget>, provided by the MultiChildExtensions extension

A widget that arranges its children sequentially along the horizontal axis
toStack({Key? key, AlignmentGeometry alignment = AlignmentDirectional.topStart, TextDirection? textDirection, StackFit fit = StackFit.loose, Clip clipBehavior = Clip.hardEdge, List<Widget>? children}) Widget

Available on List<Widget>, provided by the MultiChildExtensions extension

A widget that arranges its children sequentially on the z axis.
toWrap({Key? key, Axis direction = Axis.horizontal, WrapAlignment alignment = WrapAlignment.start, double spacing = 0.0, WrapAlignment runAlignment = WrapAlignment.start, double runSpacing = 0.0, WrapCrossAlignment crossAxisAlignment = WrapCrossAlignment.start, TextDirection? textDirectionFactor, VerticalDirection verticalDirection = VerticalDirection.down, Clip clipBehavior = Clip.none}) Widget

Available on List<Widget>, provided by the MultiChildExtensions extension

A widget that displays its children in multiple horizontal or vertical runs. Like a column that wraps