Dynamic crossAxisCount
yegor-pelykh opened this issue · 2 comments
yegor-pelykh commented
Is it possible to make a version of the constructor for ReorderableGridView where it would not be necessary to set the crossAxisCount, but this count was dynamic and dependent on the amount of free space allocated to this ReorderableGridView?
I think it should be possible.
huhuang03 commented
It's not in plan. Because:
- seems the official
GridView
not support this. - If craclAxisCont calc by child width, but child width is calc by
crossAxisCount
, so it's a cycle calc.
yegor-pelykh commented
Yes, I agree with you.
I was able to calculate the crossAxisCount
dynamically outside of your widget based on the maximum available width.
I think the issue is closed then.
Thanks for the great widget! 👍