Skip to content
pubscout

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.

WASM-ready
$ flutter pub add flutter_staggered_grid_view
Source repository

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.

Works with

Packages commonly used together with flutter_staggered_grid_view: ones it builds on, ones built on it, and its own family.