GapExt<T extends Widget> extension

Extension methods for adding gaps between widgets in a list.

Provides convenient methods to insert Gap or SliverGap widgets between all elements in a widget list.

on

Methods

gap(double spacing, {double? crossAxisExtent, Color? color}) List<Widget>

Available on List<T>, provided by the GapExt extension

Returns a widget list with Gap between each widget.
sliverGap(double spacing, {Color? color}) List<Widget>

Available on List<T>, provided by the GapExt extension

Returns a sliver list with SliverGap between each sliver.