Closed khjde1207 closed 1 year ago
Hi @khjde1207 Thank you for opening the issue. That behavior looks definitely wrong. I will check that in the next couple days
Hello I have some news for you, I found the bug in the code.
The main issue was that the dragged item was removed from the list and disposed. In that case the callback that the drag was cancelled didn't get called and the dragging internally never finished. This is the reason why the behavior was so buggy afterwards.
I implemented a solution that should fix the issue. I will improve that one later but unfortunately in the next days I won't have much time for it. So you could try the current solution if that works for you, just add the following to your pubspec.yaml
:
flutter_reorderable_grid_view:
git:
url: https://github.com/karvulf/flutter-reorderable-grid-view.git
ref: 1f6f22fec77fa70382ff63ec9d51b9b61e882db9
Let me know if that helped you! :)
I also will close the other issue because this one should solve it
I checked. It's been resolved. thank you!!
https://github.com/karvulf/flutter-reorderable-grid-view/assets/18232924/9cc3835b-6495-4a53-a9be-a0fc78d9d64b
Changing the GlobalKey causes another error. This part will be registered as a new issue.
version : 5.0.0-dev.8