Closed khjde1207 closed 1 year ago
Hello again @khjde1207 Why are you changing the GlobalKey and ScrollController? The issue about changingthe GlobalKey it is that the whole widget will be rebuilt completely new.
https://github.com/karvulf/flutter-reorderable-grid-view/issues/88 I used it because issue #88 did not occur when I changed the GlobalKey.
Ah I see Then this issue will be gone if I fix #88 I let it open until it is fixed :) @khjde1207
thank you
I am closing this issue because this behavior is happening because of updating the global key. In #88 the other issue will be fixed and it should be possible to delete the dragged item without any weird behavior. @khjde1207
I let this issue open until I merged it into the release branch
https://github.com/karvulf/flutter-reorderable-grid-view/assets/18232924/20d027e9-8274-433d-8ce7-f49a75567ac6
I am using it by modifying it as below. I don't know if there is a better way.
flutter_reorderable_grid_view-5.0.0-dev.8/lib/widgets/reorderable_scrolling_listener.dart
117 line :
if (widget.isDragging )
change to
if (widget.isDragging && widget.scrollController != null && widget.scrollController!.hasClients)
version : 5.0.0-dev.8