gap
3.1.0, released 2 weeks ago by an unverified publisher
Flutter widgets for easily adding gaps inside Flex widgets and scrolling views.
What it does
Provides Gap, MaxGap, SliverGap, and AnimatedGap widgets to add empty space inside Rows, Columns, and scrolling views without needing SizedBox or Padding.
AI-written summary of version 3.1.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want a cleaner, less verbose alternative to SizedBox inside Columns and Rows
- You need gaps inside scrollable views or sliver lists
- You want gaps that automatically adapt to the direction of a Flex widget
Skip it when
- You do not use Flex widgets or scrollable views
- Standard Padding or SizedBoxes are already sufficient for your codebase style
Strengths
- Less verbose than SizedBox
- Direction-agnostic within Rows and Columns
- Supports slivers, max-sizes, and animations
Weaknesses
- Adds an external dependency for something achievable with built-in widgets
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
Column(
children: <Widget>[
Container(color: Colors.red, height: 20),
const Gap(20),
Container(color: Colors.red, height: 20),
],
)Alternatives
Packages that do the same job and could replace gap.
- app_badge_plus
Flutter plugin to set numeric badges on app icons for iOS, Android, and macOS
84Compare - flutter_table_plus
A customizable, type-safe Flutter table widget with scrolling, sorting, and cell editing.
77Compare - flextras
A collection of Flutter Column and Row widgets with additional functionality.
50Compare - expandable_datatable
Flutter data table with expandable rows for hidden columns.
61Compare
Works with
Packages commonly used together with gap: ones it builds on, ones built on it, and its own family.
- shadcn_flutterBuilt on gapA cohesive shadcn/ui ecosystem for Flutter with components, theming, and zero Material dependency.
- pretty_good_spacingBuilt on gapA configurable spacing and design token system for Flutter apps.
- super_bullet_listBuilt on gapCreate customizable bullet lists with support for ordered, unordered, and nested items.
- layoutBuilt on gapMaterial Design layout tool for responsive breakpoints, columns, and spacing across platforms.
- widgets_easierBuilt on gapA Flutter component library offering pre-built UI widgets and responsive designs.
- chat_toolkitBuilt on gapA chat widget toolkit for Flutter with message grouping, async sending, and custom bubbles.
- flutter_animate_borderBuilt on gapWrap around existing widgets to animate a border line for loading states or colorful borders.