karvulf / flutter-reorderable-grid-view

BSD 3-Clause "New" or "Revised" License
158 stars 23 forks source link

[Feature] Supporting Drag Target to Merge #51

Open objectorientedperson opened 2 years ago

objectorientedperson commented 2 years ago

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.

karvulf commented 2 years ago

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.

objectorientedperson commented 2 years ago

@karvulf thank you so much. Cannot wait!

objectorientedperson commented 1 year ago

@karvulf any progress for the next version?

karvulf commented 1 year ago

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 commented 1 year ago

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

objectorientedperson commented 1 year ago

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 commented 1 year ago

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

karvulf commented 1 year ago

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.

objectorientedperson commented 11 months ago

@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)

karvulf commented 11 months ago

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