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
-
- List<
T>
- List<
Methods
-
gap(
double spacing, {double? crossAxisExtent, Color? color}) → List< Widget> -
Available on List<
Returns a widget list withT> , provided by the GapExt extensionGap
between each widget. -
sliverGap(
double spacing, {Color? color}) → List< Widget> -
Available on List<
Returns a sliver list withT> , provided by the GapExt extensionSliverGap
between each sliver.