WidgetListX extension
Turns a List<Widget> into a laid-out widget without the usual
Column(children: ...) ceremony, and inserts separators between items.
Methods
-
separatedBy(
Widget separator) → List< Widget> -
Available on List<
InsertsWidget> , provided by the WidgetListX extensionseparatorbetween every pair of children. -
separatedByHeight(
double height) → List< Widget> -
Available on List<
Inserts a fixed vertical gap between every pair of children.Widget> , provided by the WidgetListX extension -
separatedByWidth(
double width) → List< Widget> -
Available on List<
Inserts a fixed horizontal gap between every pair of children.Widget> , provided by the WidgetListX extension -
toColumn(
{MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start, CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center, MainAxisSize mainAxisSize = MainAxisSize.max, double spacing = 0.0, Key? key}) → Widget -
Available on List<
Wraps these widgets in a Column.Widget> , provided by the WidgetListX extension -
toListView(
{Axis scrollDirection = Axis.vertical, EdgeInsetsGeometry? padding, bool shrinkWrap = false, ScrollPhysics? physics, ScrollController? controller, Key? key}) → Widget -
Available on List<
Wraps these widgets in a scrollable ListView.Widget> , provided by the WidgetListX extension -
toRow(
{MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start, CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center, MainAxisSize mainAxisSize = MainAxisSize.max, double spacing = 0.0, Key? key}) → Widget -
Available on List<
Wraps these widgets in a Row.Widget> , provided by the WidgetListX extension -
toStack(
{AlignmentGeometry alignment = AlignmentDirectional.topStart, StackFit fit = StackFit.loose, Clip clipBehavior = Clip.hardEdge, Key? key}) → Widget -
Available on List<
Wraps these widgets in a Stack.Widget> , provided by the WidgetListX extension -
toWrap(
{double spacing = 0.0, double runSpacing = 0.0, WrapAlignment alignment = WrapAlignment.start, Axis direction = Axis.horizontal, Key? key}) → Widget -
Available on List<
Wraps these widgets in a Wrap.Widget> , provided by the WidgetListX extension