flutter_staggered_grid_view 0.8.0-dev.2
flutter_staggered_grid_view: ^0.8.0-dev.2 copied to clipboard
Provides a collection of Flutter grids layouts (staggered, masonry, quilted, woven, etc.).
0.8.0-dev.2 #
Added #
StaggeredGridDelegateand its implementations are exported, so thatStaggeredGrid.customcan be used (https://github.com/letsar/flutter_staggered_grid_view/issues/344)
Changed #
- The
itemBuilderofMasonryGridViewandSliverMasonryGridcan return null to indicate that there are no more children, likeListView.builder(https://github.com/letsar/flutter_staggered_grid_view/issues/301, thanks to angcyo for https://github.com/letsar/flutter_staggered_grid_view/pull/365) - A quilted tile which does not fit in the remaining space of a row is placed in the next row where it fits, leaving the remaining cells empty.
- The example app is in the
examplefolder, so that it's shown on pub.dev (https://github.com/letsar/flutter_staggered_grid_view/issues/333). - The README documents
SliverMasonryGridandSliverAlignedGrid(https://github.com/letsar/flutter_staggered_grid_view/issues/328), theTilewidget used in its examples (https://github.com/letsar/flutter_staggered_grid_view/issues/331), and how to size the tiles of aStaggeredGridwith another aspect ratio (https://github.com/letsar/flutter_staggered_grid_view/issues/308). flutter analyzereports no issues.
Fixed #
- Crash of
StaggeredGridwhen the spacings are larger than the available space (https://github.com/letsar/flutter_staggered_grid_view/issues/362) - Crash of
StaggeredGridwith a reversed axis direction and tiles fitting their content. Infinity or NaN toIntin patterned grids (staired, woven, quilted) without available space (https://github.com/letsar/flutter_staggered_grid_view/issues/361)RangeErrorwith quilted patterns where a tile does not fit in the remaining space of a row (https://github.com/letsar/flutter_staggered_grid_view/issues/221)- Crash of the grids using a
maxCrossAxisExtentwithout available space. AlignedGridViewandSliverAlignedGridno longer rebuild all their visible children every time they are scrolled (https://github.com/letsar/flutter_staggered_grid_view/issues/320)
0.8.0-dev.1 #
Added #
mainAxisExtentBuilderonMasonryGridViewandSliverMasonryGridto place the children without building them when their extents are known.RenderSliverMasonryGrid.itemCount, the exact number of children set bySliverMasonryGrid, to forget the placement of removed children.
Changed #
- Bump minimal Flutter version to 3.16.0
RenderSliverMasonryGridkeeps the placement of every child laid out once, instead of guessing the placement of the previous children when scrolling back.- Reaching a child far in a masonry grid lays out all the children before it once (like
ListView), unlessmainAxisExtentBuilderis provided. - When the width of a masonry grid changes without changing its
crossAxisCount, the visible children keep their state. The placement of the previous children is checked again when scrolling back, so they can move while the first visible child stays in place. WithmainAxisExtentBuilder, every child is placed again right away. - Changing the
crossAxisCountor themainAxisSpacingof a masonry grid places every child again, and the children are built again (like before). SliverMasonryGridreplaces the children moved with keys, likeSliverList, so that inserting a child keeps the state of the others.
Removed #
SliverMasonryGridParentData.lastMainAxisExtent.
Fixed #
- Scrolling issues with multiple
SliverMasonryGridin aCustomScrollView(https://github.com/letsar/flutter_staggered_grid_view/issues/338, https://github.com/letsar/flutter_staggered_grid_view/issues/335, https://github.com/letsar/flutter_staggered_grid_view/issues/299, https://github.com/letsar/flutter_staggered_grid_view/issues/286, https://github.com/letsar/flutter_staggered_grid_view/issues/265) - Jumps and children changing columns when scrolling back in a masonry grid (https://github.com/letsar/flutter_staggered_grid_view/issues/244, https://github.com/letsar/flutter_staggered_grid_view/issues/330, https://github.com/letsar/flutter_staggered_grid_view/issues/356)
estimatedMaxScrollOffset >= endScrollOffset - leadingScrollOffsetassertion (https://github.com/letsar/flutter_staggered_grid_view/issues/313)- Changing the
crossAxisCountof a masonry grid keeps the first visible child in place (https://github.com/letsar/flutter_staggered_grid_view/issues/105) - Negative child width in a masonry grid when the
crossAxisSpacingis larger than the available space.
0.6.2 #
Fixed #
- Issue with Quilted layout algorithm. (https://github.com/letsar/flutter_staggered_grid_view/issues/232)
0.6.0 #
0.5.0-dev.8 #
Changed #
- Make the
childCountparameter ofSliverMasonryGridconstructors, nullable and not required.
0.5.0-dev.1 #
Changed #
- Complete rewriting of the package. It comes now with 5 differents grid layouts (Staggered, Masonry, Quilted, Woven, Staired).
0.4.0-nullsafety.3 #
Fixed #
- LateInitializationError: Local
firstIndexhas not been initialized. (https://github.com/letsar/flutter_staggered_grid_view/issues/151)
0.3.0 #
Fixed #
- Upgrade to AndroidX and fixes the BoxHitTestResult exception (https://github.com/letsar/flutter_staggered_grid_view/issues/49)
0.2.3 #
Fixed #
- Fix the rtl support (https://github.com/letsar/flutter_staggered_grid_view/issues/17).
0.2.2 #
- Add Dart 2 support.
0.2.1 #
- Fix #10
StatefulWidget.createState must return a subtype of State<AutomaticKeepAliveVariableSizeBox>.
0.2.0 #
- Add a way to let the tile's content to define the tile's extent in the main axis.
- Add
fitconstructor toStaggeredTile.
0.1.4 #
- Add
countBuilderandextendBuilderconstructors toSliverStaggeredGrid
0.1.3 #
- Remove Flutter SDK constraint
0.1.2 #
- Remove update Flutter SDK constraint
0.1.1 #
- Fix images in readme
- Add dynamic resizing demo
0.1.0 #
- Initial Open Source release