embraceitmobile / animated_tree_view

Animated TreeView based on AnimatedList allows building fully customizable Nodes that can be nested to infinite levels and children.
https://pub.dev/packages/animated_tree_view
MIT License
67 stars 30 forks source link

Feature Request: allow items reordering #19

Open SeriousMonk opened 1 year ago

SeriousMonk commented 1 year ago

Hi, thank you for this package it's truly amazing!

I would like to suggest a new feature. It would be relly cool if this package could suppport item reorder using drag and drop. Basically the user should be able to pick up a node of the tree and drag and drop it anywhere else in the tree at the same level.

What I'm suggesting is a behavior similar to this, but adapted to work on a tree structure: expansion_tiles

There currently is no package that supports item reordering on more than 2 levels, and I believe this package has the structure to support this freature without any crazy work necessary, since it is already based on ReorderableListView.

I created a fork and started working on this, but my skills and understanding of the structure of this package are insuficcient to complete the task.

jawwad-hassan89 commented 1 year ago

This seems like a nice feature to have. I have had a look at the SliverReoderableList, and it seems that it can be integrated with the AnimatedTreeView. This might take a bit of time to get it right, but it certainly is doable. Thanks for the suggestion.

SeriousMonk commented 1 year ago

If it can be of any use for the implementation of some behaviors, the gif was taken from https://pub.dev/packages/drag_and_drop_lists

RoyGuanyu commented 1 year ago

+1, hope this reordering feature can come out soon. With this feature, this package will be awesome x 10.

jawwad-hassan89 commented 1 year ago

I haven't been able to find time to work on this feature due to my current office work load. I will start some work once I am able to find some time. Thanks for your patience :)

animator commented 1 year ago

+1

emmggi commented 12 months ago

Any news on this? I'd really appreciate this feature.

maryambatoolrana commented 1 month ago

Any news?