huhuang03/reorderable_grid_view

Disable Draging

aryaMode opened this issue · 11 comments

Is there a way to disable the dragging ?

I just used absorb pointer but that is causing me to loose the functionality of a basic button also.

Sorry, I can't understand why you want disable dragging, because this package seems only provider the dragging, and you can use the normal GridView if you don't want dragging?

I would like to disable drag. When deleting or adding an item or several they organize automatically. It would be possible?

Would be a nice effect for the user. Showing the user that the list has reorganized.

No, it's not posiible.

Maybe some other lib can do this.

Okay. Grateful for the attention.

is there is way to disable dragging from one element?

Place the element(s) in a IgnorePointer widget (and set ignoring to true) to disable dragging.

Place the element(s) in a IgnorePointer widget (and set ignoring to true) to disable dragging.

Thanks because of you, you gave me an idea of how to solve it.
// disable Long Press
if (widget.notes.length == (index + 1)) {
return GestureDetector(
onLongPress: () {},
key: ValueKey(index),
child: GridItem(index, context),
);
}
return GridItem(index, context);
},

Hi guys, any update on this ?

I also want to disable drag&drop on only some specific items of the grid and allow others to still be dragged&dropped on each other

The answer above #23 (comment) works partially. It disables drag&drop on a particular item but it is still being pushed around! while dragging other slots