flutter_staggered_grid_view
0.7.0, released 3 years ago by romainrastel.com
Provides a collection of custom grid layouts like staggered, masonry, quilted, and woven.
What it does
Provides various non-standard grid layouts such as staggered, masonry, quilted, woven, staired, and aligned. It includes dedicated widgets and grid delegates that work with standard Flutter scroll views and custom pattern builders.
AI-written summary of version 0.7.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a masonry layout where item heights vary and depend on their contents.
- You want to display complex grid patterns like quilted, woven, or staggered designs.
Skip it when
- You only need a simple, uniform, single-column or multi-column grid that standard GridView handles natively.
- You require a performant staggered layout algorithm inside a Sliver context for a large number of items.
Strengths
- Supports multiple distinct layout patterns out of the box (masonry, quilted, woven, etc.).
- Integrates smoothly with standard Flutter GridView and custom delegates.
Weaknesses
- Some layouts like staggered are not performant in a Sliver context for large item lists.
- Specific constraints and properties apply differently depending on the chosen layout type.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
MasonryGridView.count(
crossAxisCount: 4,
mainAxisSpacing: 4,
crossAxisSpacing: 4,
itemBuilder: (context, index) {
return Tile(
index: index,
extent: (index % 5 + 1) * 100,
);
},
);Alternatives
Packages that do the same job and could replace flutter_staggered_grid_view.
- masonry_grid
Flutter layout widget to create masonry and staggered item grids.
37Compare - flutter_fancy_tree_view2
Widgets and slivers for rendering hierarchical tree structures and handling drag-and-drop.
77Compare - sliver_dashboard
Smooth, sliver-based drag and resize grid engine for Flutter dashboards.
76Compare - responsive_grid
Responsive grid system for Flutter with row/column, list, and staggered list widgets
50Compare
Works with
Packages commonly used together with flutter_staggered_grid_view: ones it builds on, ones built on it, and its own family.
- infinite_scroll_paginationBuilt on flutter_staggered_grid_viewLazily load and display pages of items as the user scrolls down your screen.
- nylo_supportBuilt on flutter_staggered_grid_viewSupport library for the Nylo framework offering routing, networking, storage, widgets and more.
- giphy_getBuilt on flutter_staggered_grid_viewPick emojis, stickers, or GIFs from Giphy in pure Dart code.
- flutter_slickBuilt on flutter_staggered_grid_viewAn opinionated MVVM application framework with typed routing, auth, and form widgets.
- firestore_uiBuilt on flutter_staggered_grid_viewAnimated Firestore list, grid and staggered widgets that react to realtime updates.