WidgetListX extension

Turns a List<Widget> into a laid-out widget without the usual Column(children: ...) ceremony, and inserts separators between items.

on

Methods

separatedBy(Widget separator) → List<Widget>

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

Inserts separator between every pair of children.
separatedByHeight(double height) → List<Widget>

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

Inserts a fixed vertical gap between every pair of children.
separatedByWidth(double width) → List<Widget>

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

Inserts a fixed horizontal gap between every pair of children.
toColumn({MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start, CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center, MainAxisSize mainAxisSize = MainAxisSize.max, double spacing = 0.0, Key? key}) → Widget

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

Wraps these widgets in a Column.
toListView({Axis scrollDirection = Axis.vertical, EdgeInsetsGeometry? padding, bool shrinkWrap = false, ScrollPhysics? physics, ScrollController? controller, Key? key}) → Widget

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

Wraps these widgets in a scrollable ListView.
toRow({MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start, CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center, MainAxisSize mainAxisSize = MainAxisSize.max, double spacing = 0.0, Key? key}) → Widget

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

Wraps these widgets in a Row.
toStack({AlignmentGeometry alignment = AlignmentDirectional.topStart, StackFit fit = StackFit.loose, Clip clipBehavior = Clip.hardEdge, Key? key}) → Widget

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

Wraps these widgets in a Stack.
toWrap({double spacing = 0.0, double runSpacing = 0.0, WrapAlignment alignment = WrapAlignment.start, Axis direction = Axis.horizontal, Key? key}) → Widget

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

Wraps these widgets in a Wrap.