Repository navigation
v0.8.0-dev.2
Pre-release
Pre-release
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.2Fixes
StaggeredGridno 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 toIntwithout 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 aRangeError(#221): the tile is placed in the next row where it fits. - The grids using a
maxCrossAxisExtentno longer crash without available space. AlignedGridViewandSliverAlignedGridno longer rebuild all their visible children every time they are scrolled (#320).
API
StaggeredGridDelegateand its implementations are exported, soStaggeredGrid.customcan be used (#344).- The
itemBuilderofMasonryGridViewandSliverMasonryGridcan return null to end the grid, likeListView.builder(#301, thanks to angcyo for #365).
Documentation and example
- The example app is now in the
examplefolder, so it's shown on pub.dev (#333). - The README documents
SliverMasonryGridandSliverAlignedGrid(#328), theTilewidget used in its examples (#331), and how to give the tiles of aStaggeredGridanother aspect ratio (#308). flutter analyzereports no issues.
The package still supports Flutter 3.16 and later. See the CHANGELOG for the details.