Mindinventory / flutter_draggable_gridview

This package supports drag & drop widgets inside the GridView.builder for multiplatform. It provides all the properties which are available in Gridview. builder and easy to implement with the few lines of code.
https://www.mindinventory.com/flutter-app-development.php
MIT License
100 stars 19 forks source link

How are you supposed to track grid changes? #10

Closed lukepighetti closed 2 years ago

lukepighetti commented 2 years ago

Right now the only callback I see for when the grid changes is onDragAccept(List<DraggableGridItem> list). However, DraggableGridItem doesn't have any provisions for attaching a data payload, and it doesn't contain before or after indices, so it's not clear how we're expected to handle these grid changes.