Skip to content
pubscout

masonry_grid

1.0.0, released 5 years ago by an unverified publisher

Flutter layout widget to create masonry and staggered item grids.

WASM-ready
$ flutter pub add masonry_grid
Source repository

What it does

Provides a MasonryGrid widget that renders children in a specified number of columns. Supports staggered layout options, spacing adjustments, and cross-axis alignment.

AI-written summary of version 1.0.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need a masonry or staggered grid layout for widgets.
  • You want to specify the number of columns and spacing explicitly.

Skip it when

  • You require a complex virtualized staggered grid for massive datasets.
  • You need advanced sliver-based staggered scrolling integrations not covered by this widget.

Strengths

  • Simple API with clear properties like column count and staggered mode.
  • Supports null safety and hot reload updates.

Weaknesses

  • Limited documentation and property details beyond basic README.
  • No topics or advanced configuration explicitly documented.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0

Not documented

MasonryGrid(
  column: 2,
  children: List.generate(10, (i) =>
    SizedBox(width: 100, height: 100, child: Text("hello")),
  ),
)

Alternatives

Packages that do the same job and could replace masonry_grid.