casvanluijtelaar / reorderable_grid

A Flutter inplementation of the reorderable grid UI pattern, closely mimics Flutters exisiting ReorderableList

Home Page:https://pub.dev/packages/reorderable_grid

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot drop item back in its original position

olof-dev opened this issue · comments

It appears to be impossible to drop an item back in its original position, at least in the package's sample app (and in my app where I tried to use this package). The items to the left and right of the item that's being dragged are 'glued' together:

reorderable_grid_bug.mp4

This doesn't seem to be an issue in https://github.com/huhuang03/reorderable_grid_view/, which I gather this package started from. (That package lacks some things that this one has, however.)

Thanks for this package!

This doesn't seem to be an issue in https://github.com/huhuang03/reorderable_grid_view/, which I gather this package started from. (That package lacks some things that this one has, however.)

These packages are unrelated. And this issue is most likely related to my comment in #15. because the original position is replaced by a zero with sizedbox. good catch!

These packages are unrelated. And this issue is most likely related to my comment in #15. because the original position is replaced by a zero with sizedbox. good catch!

Ah, I assumed they were related because of huhuang03/reorderable_grid_view#20, but I see now that your PR there was from a different repository.

Excellent about identifying the likely culprit. I'm on a deadline so I'm not likely to have a chance to think about alternatives to the zero-width SizedBox very soon, but I'll let you know if I have any ideas.