flutter_staggered_grid_view
flutter_staggered_grid_view copied to clipboard
Undefined name 'StaggeredGridView
Undefined name 'StaggeredGridView'. Try correcting the name to one that is defined, or defining the name.
StaggeredGridView no longer exists, what to use now?
Me too. I think it's removed from the library.
You can try StaggeredGrid.count
instead
and how to implement scrollController on StaggeredGrid.count ?
Me too. I think it's removed from the library. You can try
StaggeredGrid.count
instead
and how to implement scrollController on StaggeredGrid.count ?
Me too. I think it's removed from the library. You can try
StaggeredGrid.count
instead
Are you mean the scroll widget? I haven't find the solution yet. I still use the GridView in scrolling widget
Here is how I changed my code:
Previously
StaggeredGridView.count(
scrollController: scrollController,
),
Now
SingleChildScrollView(
scrollController: scrollController,
child: StaggeredGrid.count(),
),
https://github.com/letsar/flutter_staggered_grid_view/issues/226#issuecomment-1126771747
There is a wiki to help you choose the right API for your needs: https://github.com/letsar/flutter_staggered_grid_view/wiki
I have mentioned the answer in here