karvulf / flutter-reorderable-grid-view

BSD 3-Clause "New" or "Revised" License
155 stars 22 forks source link

[Feature Request] Add more gesture options #81

Open isenbj opened 1 year ago

isenbj commented 1 year ago

I would like to have more gestures for each grid item.

For my project, I want to be able to tab a grid entity, scroll in the grid with my finger, hold for a set amount of time (say 200 ms) and start a reorder, but hold longer (say 500 ms) and run a function (say switch the grid from reorderable, to selectable)

Right now, if I enableLongPress, then I cannot have a gesture detector in my grid with a LongPress to switch the grid to a selectable grid. I can set enableLongPress to false, but I can no longer scroll with 1 finger and have to use 2.

summary of desired behavior: tap => run function (handled with a gesture detector in the grid children) drag finger in grid => scrolls up or down with single finger short press (200 ms) => start dragging long press (500 ms) => run function (can be in gesture detector, but blocked by the LongPressDraggable)