[0.3.3] - 4 August 2022
- Update to flutter 3 (thanks @mauriceraguseinit)
[0.3.2+2] - 21 October 2021
- Replace flutter deprecated elements
[0.3.2+1] - 21 October 2021
- Fix last list target for horizontal lists (thanks @nvloc120).
- Add ability to remove top padding when there is a widget before the DragAndDropLists (See flutter/flutter#14842, thanks @aliasgarlabs)
- Add optional feedback widget to items (thanks @svoza10).
- Fix scrolling in wrong direction when text direction is right-to-left.
- Fix drag-and-drop feedback widget alignment when text direction is right-to-left.
- Fix null crash and wrong drag handle used (thanks @vbuberen).
- DragHandle moved to own widget. To create any drag handle, use the new properties
listDragHandle
anditemDragHandle
inDragAndDropLists
. - Support null safety, see details on migration.
- Bug fix where
listDecorationWhileDragging
wasn't always being applied. - Allow DragAndDropLists to be contained in an external ListView when
disableScrolling
is set totrue
.
- Prevent individual lists inside of a horizontal DragAndDropLists from scrolling when
disableScrolling
is set to true.
- Bug fix to also not allow scrolling when
disableScrolling
is set to true when dragging and dropping items.
- Added
disableScrolling
parameter toDragAndDropLists
.
- Added
listDividerOnLastChild
parameter toDragAndDropLists
. This allows not showing a list divider after the last list (thanks @Zexuz).
- Added
onItemDraggingChanged
andonListDraggingChanged
parameters toDragAndDropLists
. This allows certain use cases where it is useful to be notified when dragging starts and ends - Refactored
DragAndDropItemWrapper
to accept aDragAndDropBuilderParameters
instead of all the other parameters independently to allow for simpler and more consistent changes
- Always check mounted status when setting state
- Added
constrainDraggingAxis
parameter inDragAndDropLists
. This is useful when setting custom drag targets outside of the DragAndDropLists.
- Added drag handle vertical alignment customization. See
listDragHandleVerticalAlignment
anditemDragHandleVerticalAlignment
parameters inDragAndDropLists
- Added mouse cursor change on web when hovering on drag handle
- Fixed itemDecorationWhileDragging only applied when dragHandle is provided? (thanks kjmj)
- Fixed bug where setState() was called after dispose when dragging items in a long list (See issue Error in debug console when dragging item in long list, thanks mivoligo)
- Apply the itemDivider property to items in the DragAndDropListExpansion widget and use the lastItemTargetHeight instead of the constant value of 20 (thanks kjmj)
- Added
disableTopAndBottomBorders
parameter toDragAndDropListExpansion
andProgrammaticExpansionTile
to allow for more styling options.
- Added function parameters for customizing the criteria for where an item or list can be dropped. See the parameters
listOnWillAccept
,listTargetOnWillAccept
,itemOnWillAccept
anditemTargetOnWillAccept
inDragAndDropLists
- Added function parameters for directly accessing items or lists that have been dropped. See the parameters
listOnAccept
,listTargetOnAccept
,itemOnAccept
anditemTargetOnAccept
inDragAndDropLists
- Fixed bug where auto scrolling could occur even when not dragging an item (thanks @ElenaKova)
- Added option for drag handles. See
dragHandle
anddragHandleOnLeft
parameters inDragAndDropLists
- Added new example for drag handles
- Added option for item dividers. See the
itemDivider
parameter inDragAndDropLists
- Added option for inner list box decoration. See the
listInnerDecoration
parameter inDragAndDropLists
- Added option for decoration while dragging lists and items. See the
itemDecorationWhileDragging
anditemDecorationWhileDragging
parameters inDragAndDropLists
- Removed unused
itemDecoration
parameter inDragAndDropLists
- Fixed unused
itemDraggingWidth
parameter inDragAndDropLists
- Configurable bottom padding for list and items. See the
lastItemTargetHeight
,addLastItemTargetHeightToTop
andlastListTargetSize
parameters inDragAndDropLists
- Remove
pubspec.lock
(thanks @freitzzz)
- Added canDrag option for lists
- Interface Change: Any classes implementing
DragAndDropListInterface
need to addcanDrag
- Fixed wrong parameter order for onItemAdd (thanks @khauns)
- ProgrammaticExpansionTile: include option for isThreeLine of ListTile
- ProgrammaticExpansionTile: Remove required annotation for leading
- ProgrammaticExpansionTile: ensure that parent widget will always know its expanded/collapsed state
- Updated example project for web compatibility
- Formatted all with dartfmt
- Added API documentation
- Initial release