muhammad369 / ResponsiveGrid_Flutter

Responsive Grid Layout for Flutter
MIT License
88 stars 27 forks source link

Accept a scrollcontroller as constructor parameter #26

Closed softlore closed 1 year ago

softlore commented 2 years ago

I am using flutter 2.10.4 and currently working on a windows desktop app. I use ResponsiveGridList to build a grid. Whenever I scroll I am getting the following exception:

Another exception was thrown: The provided ScrollController is currently attached to more than on Scrollposition

I got a similar error when nesting SingleChildScrollView inside Column and this stackoverflow post https://stackoverflow.com/a/70772195/4435860 suggested to add ScrollController. Can you please check and update the constructor to accept a optional ScrollController?

linhmanh92 commented 2 years ago

@softlore Has this issue been resolved?

softlore commented 2 years ago

@linhmanh92, I have modified the source code and added the modified version as a local dependancy in my project.