flutter-reorderable-grid-view icon indicating copy to clipboard operation
flutter-reorderable-grid-view copied to clipboard

[Feature] Supporting Drag Target to Merge

Open objectorientedperson opened this issue 2 years ago • 10 comments

Use case: Drag one item to another so that I can merge the one to another object when I drop. (It's like in Android/iOS home screen where you can drag apps to folders or drag into another that it creates a folder) Basically supporting both drag and drop, and when dropped into another item (before reorder) user can have ability to merge the items.

Simple action: https://i.stack.imgur.com/bIS09.gif

So user can either re-order, or merges the items together before the next index moves.

objectorientedperson avatar Oct 04 '22 21:10 objectorientedperson

Hi @objectorientedperson That sounds like a great feature and shouldn't be too hard to implement. I will add this feature to my roadmap for the next major version 4.0.0.

karvulf avatar Oct 05 '22 06:10 karvulf

@karvulf thank you so much. Cannot wait!

objectorientedperson avatar Oct 06 '22 10:10 objectorientedperson

@karvulf any progress for the next version?

objectorientedperson avatar Dec 19 '22 22:12 objectorientedperson

I wish I could say yes, but I just hadn't enough time to implement your feature. I am still on the process to rebuild the drag and drop functionality. This is the most important and complicated feature, so it takes a lot of time that I need. I hope in the beginning of the next year, I will finish that. @objectorientedperson

karvulf avatar Dec 20 '22 06:12 karvulf

What you could think of, did you try to implement your feature request with just a normal GridView. In your case you don't want to reorder the items, right? So I am pretty sure that this implementation should also work without this package. @objectorientedperson

karvulf avatar Dec 20 '22 06:12 karvulf

Glad to hear it will be available soon.

My case is reorder + merge, yes with current widgets we can add merge functionality but I need them both. And there is no any plugin/library does that.

objectorientedperson avatar Dec 20 '22 10:12 objectorientedperson

hi @karvulf, would be glad to hear from you for any updates.

objectorientedperson avatar Nov 30 '23 15:11 objectorientedperson

Hello @objectorientedperson

I am very sorry, I totally forgot to notify you. Could that solve your issue? #89 The user built a solution to delete an item, probably that could also be something useful for your usecase.

karvulf avatar Dec 01 '23 09:12 karvulf

@karvulf hello, it's ok, unfortunately it doesn't solve it. Still no way to drag&drop + merge. (like in home screen of ios/android)

objectorientedperson avatar Dec 20 '23 12:12 objectorientedperson

What did not work or do you have an example code? I was pretty sure that #89 could solve this but I guess that your usecase is different. @objectorientedperson

karvulf avatar Dec 20 '23 13:12 karvulf