reorderables
reorderables copied to clipboard
Drag and drop not working
I tried the example for drag and drop but not working. can someone refer to good documentation
Have you made sure you were either long-pressing the item, or set needsLongPressDraggable
to false?
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.
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.
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 ;)
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.