Add the same height as the lastItemTargetHeight to the top of the list.
This is useful when setting the listInnerDecoration to maintain visual
continuity between the top and the bottom
Determines whether the DragAndDropLists are displayed in a horizontal or
vertical manner.
Set axis to Axis.vertical for vertical arrangement of the lists.
Set axis to Axis.horizontal for horizontal arrangement of the lists.
If axis is set to Axis.horizontal, listWidth must be set to some finite number.
Constrain the dragging axis in a vertical list to only allow dragging on
the vertical axis. By default this is set to true. This may be useful to
disable when setting customDragTargets
Set to true in order to disable all scrolling of the lists.
Note: to disable scrolling for sliver lists, it is also necessary in your
parent CustomScrollView to set physics to NeverScrollableScrollPhysics()
Set in order to get the items involved in a drag and drop operation after
an item has been accepted. For general use cases where only reordering is
necessary, only onItemReorder or onItemAdd is needed, and this should
be left null. onItemReorder or onItemAdd will be called after this.
Set in order to get the item and target involved in a drag and drop
operation after a item has been accepted. For general use cases where only
reordering is necessary, only onItemReorder or onItemAdd is needed,
and this should be left null. onItemReorder or onItemAdd will be
called after this.
Set in order to provide custom acceptance criteria for when a item can be
dropped onto a specific target. This target always exists as the last
target for list of items, and also can be used independently.
Whether a list should be dragged on a long or short press.
When true, the list will be dragged after a long press.
When false, it will be dragged immediately.
Set in order to get the lists involved in a drag and drop operation after
a list has been accepted. For general use cases where only reordering is
necessary, only onListReorder or onListAdd is needed, and this should
be left null. onListReorder or onListAdd will be called after this.
Set in order to get the list and target involved in a drag and drop
operation after a list has been accepted. For general use cases where only
reordering is necessary, only onListReorder or onListAdd is needed,
and this should be left null. onListReorder or onListAdd will be
called after this.
Set in order to provide custom acceptance criteria for when a list can be
dropped onto a specific target. This target always exists as the last
target the DragAndDropLists, and also can be used independently.
Calls this function when a list element is reordered.
Takes into account the index change when removing an item, so the
newItemIndex can be used directly when inserting.
Calls this function when a list is reordered.
Takes into account the index change when removing a list, so the
newListIndex can be used directly when inserting.
If you put a widget before DragAndDropLists there's an unexpected padding
before the list renders. This is the default behaviour for ListView which
is used internally. To remove the padding, set this field to true
https://github.com/flutter/flutter/issues/14842#issuecomment-371344881
Whether or not to return a widget or a sliver-compatible list.
Set to true if using as a sliver. If true, a scrollController must be provided.
Set to false if using in a widget only.