flutter_staggered_grid_view icon indicating copy to clipboard operation
flutter_staggered_grid_view copied to clipboard

StaggeredGridView.countBuilder

Open xo2027 opened this issue 3 years ago • 24 comments

well,i like this lib very much ,but when i update 0.6.0, i don't know how to finish the page ,but in 0.4.1 i can do it.i hope u add the function again ,or teach me how to do it in new version, thank you. by the way ,it's many dat QQ截图20220115154856 photo_2022-01-15_15-39-33 a

xo2027 avatar Jan 15 '22 11:01 xo2027

same issue here!

dragonemperor03 avatar Jan 16 '22 16:01 dragonemperor03

same problem

kevin4dhd avatar Jan 19 '22 20:01 kevin4dhd

same, it seems SliverStaggeredGrid was removed without any info in the changelog.

crtl avatar Jan 21 '22 13:01 crtl

same issue, emmmm, no info in changelog

yaoyao2mm avatar Jan 24 '22 04:01 yaoyao2mm

waiting for an amazing answer.

thanhnh98 avatar Jan 26 '22 02:01 thanhnh98

Same issue here #223, and the answer is to migrate in MasonryGridView

if this can help, that work for me ;)

Maxvyr avatar Jan 26 '22 09:01 Maxvyr

Same issue here #223, and the answer is to migrate in MasonryGridView

if this can help, that work for me ;)

actually ,i tried MasonryGridView also,but no StraggeredTile.count,so i dont know how to finish this kind of page.still waiting update~~~

xo2027 avatar Jan 26 '22 09:01 xo2027

See #210 for info why it isnt supported anymore (performance). The main problem is that there is no info in changelog and no migration guide / recommendations.

crtl avatar Jan 26 '22 10:01 crtl

same issue

hitanshu1 avatar Feb 08 '22 05:02 hitanshu1

same issue

nesror avatar Feb 10 '22 11:02 nesror

same issue

GodLiyf avatar Apr 26 '22 06:04 GodLiyf

same issue

mattg1995 avatar May 03 '22 00:05 mattg1995

Use version below, it has everything you need with null safety

flutter_staggered_grid_view: ^0.4.0

vestadev avatar May 14 '22 16:05 vestadev

I didn't fully understand the issue, can't you use MasonryGridView.count ?

letsar avatar Jul 10 '22 08:07 letsar

@letsar

See #210 for info why it isnt supported anymore (performance). The main problem is that there is no info in changelog and no migration guide / recommendations.

crtl avatar Jul 10 '22 20:07 crtl

@letsar I guess he have the same problem that im facing, it its impossible to use MasonryGridView.count because it is specified that the tiles can only ocupy one column, and, as you can see in the example, some tiles ocupy more than one

alexandrefscampos avatar Jul 13 '22 18:07 alexandrefscampos

same issue

lucian1024 avatar Aug 18 '22 08:08 lucian1024

@lucian1024 I fixed my issue using StaggeredGrid.count, and passed to the Children a List of StaggeredGridTile. Worked like a charm

alexandrefscampos avatar Aug 18 '22 20:08 alexandrefscampos

@lucian1024 I fixed my issue using StaggeredGrid.count, and passed to the Children a List of StaggeredGridTile. Worked like a charm

StaggeredGrid is only for small number of items. It is not suitable for long lists because it cannot create children on demand.

lucian1024 avatar Aug 22 '22 02:08 lucian1024

well,i like this lib very much ,but when i update 0.6.0, i don't know how to finish the page ,but in 0.4.1 i can do it.i hope u add the function again ,or teach me how to do it in new version, thank you. by the way ,it's many dat QQ截图20220115154856 photo_2022-01-15_15-39-33 a

请问原来的这种效果 升级后怎么实现

desire0420 avatar Sep 06 '22 08:09 desire0420

同样的问题#223,答案是迁移到 MasonryGridView 如果这有帮助,那对我有用;)

其实,我也试过MasonryGridView,但没有StraggeredTile.count,所以我不知道如何完成这种页面。还在等待更新~~~

还会更新吗,一直保持着0.4.0 的版本 不敢升级

desire0420 avatar Sep 06 '22 10:09 desire0420

After updating to latest version you can not use StaggeredGridView.countBuilder instead you have to use GridView.custom like this, it will work like charm

GridView.custom(
              padding: EdgeInsets.only(
                bottom: 16.w,
                left: 16.w,
                right: 16.w,
              ),
              gridDelegate: SliverQuiltedGridDelegate(
                crossAxisCount: 6,
                mainAxisSpacing: 8,
                crossAxisSpacing: 8,
                repeatPattern: QuiltedGridRepeatPattern.inverted,
                pattern: const [
                  QuiltedGridTile(4, 4),
                  QuiltedGridTile(2, 2),
                  QuiltedGridTile(2, 2),
                ],
              ),
              childrenDelegate: SliverChildBuilderDelegate((context, index) {
                return Container(...)
              }, 
               childCount: your_list_length
              ),
            ),

ahmadhassan-dev avatar Sep 28 '22 05:09 ahmadhassan-dev

@xo2027 is you have a pattern that repeating you can use the Quilted pattern https://github.com/letsar/flutter_staggered_grid_view/wiki/Quilted

letsar avatar Nov 01 '22 10:11 letsar

好吧,我非常喜欢这个库,但是当我更新0.6.0时,我不知道如何完成这个页面,但是在0.4.1中我可以做到。 新版本中做到这一点了 。有很多 数据 QQ截图20220115154856 照片_2022-01-15_15-39-33

请问有解决这个问题吗 ,应该怎么解决

desire0420 avatar Feb 20 '23 11:02 desire0420