So I'm starting to learn Flutter and would like to use a material design drag and drop list just like the one seen on the material guidelines website.
All of the libraries I have tried out so far look like garbage compared to that. Is there a good library for this that I am missing or a native Flutter widget?
Check knopp/flutter_reorderable_list. It accomplishes just that. It's really smooth and it's got no performance issues, being able to handle thousands of items.
However, it's implementation is not easy as usual flutter widgets.
If you struggle with that, I'd recommend you to use a widget I created to port flutter/ReorderableListView
s to the knopp/ReorderableList
.
This widget makes it really easy to use, however it doesn't provide the same flexibility, and as it works with a children
List
, it's not as scalable as the original.
Here's the code for ReorderableListSimple and this is the demo.