talira

flutter_staggered_grid_view

Staggered, masonry, quilted, woven, staired and aligned grid layouts for Flutter

open sourceMITfree

flutter_staggered_grid_view gives a Flutter app a collection of grid layouts beyond the built-in grid: a staggered grid for a small number of tiles of different sizes, a masonry grid whose item heights follow their content, quilted, woven and staired layouts (delegates for the built-in GridView) that vary tile sizes and ratios, and an aligned grid where items in a row share the tallest one's height, like CSS Grid. Romain Rastel makes it.

Problems it solves

  • show a Pinterest-style masonry grid in my Flutter app
  • make grid tiles of different sizes in Flutter
  • lay out a photo gallery with varied tile ratios in Flutter

Features

  • staggered grid with tiles spanning columns, sized by count, extent or content
  • masonry grid sized by each item's content
  • quilted, woven and staired layouts as GridView delegates
  • aligned grid, like CSS Grid