flutter_staggered_grid_view
flutter_staggered_grid_view copied to clipboard
[Help Request] I want to achieve custom Grid pattern
I am working on this for a while but didn't find how to achieve my desired design which is just random tiles with a fixed pattern that some times it comes two tiles in column sometimes it would be a big block ... Here is what I want Thanks in advance
You can use the Quilted layout for this kind of pattern. Something like this, may be what you want:
SliverQuiltedGridDelegate(
crossAxisCount: 2,
mainAxisSpacing: 4,
crossAxisSpacing: 4,
repeatPattern: QuiltedGridRepeatPattern.inverted,
pattern: const [
QuiltedGridTile(1, 1),
QuiltedGridTile(1, 1),
QuiltedGridTile(2, 2),
QuiltedGridTile(1, 1),
QuiltedGridTile(1, 1),
],
),
Closing since no response since a while.