hanshengchiu / reorderables

Reorderable table, row, column, wrap, and sliver list that allow drag and drop of the children. https://pub.dartlang.org/packages/reorderables
MIT License
740 stars 170 forks source link

Improve ReorderableWrap for full width widgets #177

Open t-langen opened 1 year ago

t-langen commented 1 year ago

Changes the drag targets from two horizontal/vertical rectangles to two triangles covering the upper left side for the "preDragTarget" and the lower right side for the "nextDragTarget". When a reorderable widget expands to full width, it is now more intuitive to drag it to the previous/next position.

For example, without this change, the user always had to drag the widget to the left to move it to the previous position when horizontal mode was enabled. Now it is possible to simply drag it upwards on the right side of the widget.

Updated:

Wrap_Diagonal

Before (horizontal direction):

Wrap_Horizontal

Before (vertical direction):

Wrap_Vertical