Skip to content

v0.8.0-dev.2

Pre-release
Pre-release

Choose a tag to compare

@letsar letsar released this 04 Nov 09:07
· 4 commits to master since this release
c6cfc5d

Second pre-release of 0.8.0. It contains the masonry layout rewritten in 0.8.0-dev.1, and fixes most of the remaining issues of the other grids. Please try it and report any issue before the stable 0.8.0.

dependencies:
  flutter_staggered_grid_view: ^0.8.0-dev.2

Fixes

  • StaggeredGrid no longer crashes when the spacings are larger than the available space (#362), nor with a reversed axis direction and tiles fitting their content.
  • The patterned grids (staired, woven, quilted) no longer throw Infinity or NaN toInt without available space (#361).
  • Quilted patterns where a tile doesn't fit in the remaining space of a row (like [1x1, 1x1, 2x2] with 3 columns) no longer throw a RangeError (#221): the tile is placed in the next row where it fits.
  • The grids using a maxCrossAxisExtent no longer crash without available space.
  • AlignedGridView and SliverAlignedGrid no longer rebuild all their visible children every time they are scrolled (#320).

API

  • StaggeredGridDelegate and its implementations are exported, so StaggeredGrid.custom can be used (#344).
  • The itemBuilder of MasonryGridView and SliverMasonryGrid can return null to end the grid, like ListView.builder (#301, thanks to angcyo for #365).

Documentation and example

  • The example app is now in the example folder, so it's shown on pub.dev (#333).
  • The README documents SliverMasonryGrid and SliverAlignedGrid (#328), the Tile widget used in its examples (#331), and how to give the tiles of a StaggeredGrid another aspect ratio (#308).
  • flutter analyze reports no issues.

The package still supports Flutter 3.16 and later. See the CHANGELOG for the details.