flutter_staggered_grid_view icon indicating copy to clipboard operation
flutter_staggered_grid_view copied to clipboard

Undefined name 'StaggeredGridView

Open kevin4dhd opened this issue 3 years ago • 7 comments

Undefined name 'StaggeredGridView'. Try correcting the name to one that is defined, or defining the name.

StaggeredGridView no longer exists, what to use now?

kevin4dhd avatar Jan 19 '22 17:01 kevin4dhd

Me too. I think it's removed from the library. You can try StaggeredGrid.count instead

khumam avatar Jan 24 '22 10:01 khumam

and how to implement scrollController on StaggeredGrid.count ?

Me too. I think it's removed from the library. You can try StaggeredGrid.count instead

thanhnh98 avatar Jan 26 '22 02:01 thanhnh98

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

khumam avatar Feb 04 '22 03:02 khumam

Here is how I changed my code:

Previously

StaggeredGridView.count(
  scrollController: scrollController,
),

Now

SingleChildScrollView(
  scrollController: scrollController,
  child: StaggeredGrid.count(),
),

ValentinVignal avatar Apr 14 '22 04:04 ValentinVignal

https://github.com/letsar/flutter_staggered_grid_view/issues/226#issuecomment-1126771747

vestadev avatar May 14 '22 16:05 vestadev

There is a wiki to help you choose the right API for your needs: https://github.com/letsar/flutter_staggered_grid_view/wiki

letsar avatar Jul 10 '22 09:07 letsar

I have mentioned the answer in here

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