reorderables icon indicating copy to clipboard operation
reorderables copied to clipboard

Drag and drop not working

Open magician20 opened this issue 3 years ago • 5 comments

I tried the example for drag and drop but not working. can someone refer to good documentation

magician20 avatar Sep 27 '21 21:09 magician20

Have you made sure you were either long-pressing the item, or set needsLongPressDraggable to false?

JaidynBluesky avatar Feb 23 '22 02:02 JaidynBluesky

Hi, thanks for the clarification. This long-pressing behaviour is somehow confusing and/or misleading. I've got into the same situation; tried the wrapper in my own project - didn't work, downloaded and run the example project - didn't work, finally came here to see if any related issue opened, here we're. We might want to set this to false either by default or within the examples to avoid people wasting time to get this working. Awesome package by the way, much appreciated.

kirpit avatar Oct 07 '22 00:10 kirpit

I tried many times until I saw this issue. It creates a lot of confusion. It seems like it would be more efficient if it wasneedsLongPressDraggable is true by default.

tanergun avatar Feb 10 '23 12:02 tanergun

Exact same thing here. I tried directly implementing the lib within my code, didn't work. Then I tried stripping it down a little, didn't work. Then I tried to copy paste the simplest ReorderableColumn example, didn't work either!

So I concluded that something definitely had to be wrong with the lib and after googling around I found myself here and realized it's actually been working from the beginning.

Please make this the default of at least make it predominantly clear in the docs that first time users should pay extra attention to this parameter.

Thanks ;)

jerefrer avatar Apr 18 '23 13:04 jerefrer

EDIT: Oh wait, now Flutter has ReorderableListView (Material version) and ReorderableList ("basic" version) built in! No list animation on reorder though, I guess.

Aaaaarrrrgggghhh! Now, in 2024, it seems ReorderableSliverList and ReorderableSliverChildBuilderDelegate have no option related to wasneedsLongPressDraggable, or needsLongPressDraggable anything ...longPressDraggable. In fact, it appears LongPressDraggable is now hard-coded into reorderable_sliver.dart on line 772, with a bunch of other stuff commented out. No idea, I can't be blocked by this, too much to do. Long press drag is okay, if optional. Need a plugin that accommodates either long-press, short-press drag, or handle drag. I'm looking at other packages.

tgrushka avatar Jun 26 '24 01:06 tgrushka