From 0415ce8a11fd32ae318500bcc0fa47672083461a Mon Sep 17 00:00:00 2001 From: Philip Brink Date: Tue, 26 Nov 2024 15:17:41 -0500 Subject: [PATCH] Bump version --- CHANGELOG.md | 4 ++++ lib/drag_and_drop_list.dart | 1 + lib/drag_and_drop_list_expansion.dart | 1 + pubspec.yaml | 2 +- 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8b2b047..b320b42 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +[0.4.2] - 26 November 2024 + +* Add key getter to drag and drop list interface (thanks [@juancdominici](https://github.com/juancdominici)) + [0.4.1] - 12 June 2024 * Add key to DragAndDropItem and DragAndDropList (thanks [@saileshbro](https://github.com/saileshbro)) diff --git a/lib/drag_and_drop_list.dart b/lib/drag_and_drop_list.dart index 606c5c3..ec005c9 100644 --- a/lib/drag_and_drop_list.dart +++ b/lib/drag_and_drop_list.dart @@ -49,6 +49,7 @@ class DragAndDropList implements DragAndDropListInterface { /// Set to false if it must remain fixed. @override final bool canDrag; + @override final Key? key; DragAndDropList({ required this.children, diff --git a/lib/drag_and_drop_list_expansion.dart b/lib/drag_and_drop_list_expansion.dart index ea3519c..e38e1a1 100644 --- a/lib/drag_and_drop_list_expansion.dart +++ b/lib/drag_and_drop_list_expansion.dart @@ -36,6 +36,7 @@ class DragAndDropListExpansion implements DragAndDropListExpansionInterface { @override final bool canDrag; + @override final Key? key; /// Disable to borders displayed at the top and bottom when expanded diff --git a/pubspec.yaml b/pubspec.yaml index 6e7925a..75af0f0 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: drag_and_drop_lists description: A flutter package to allow drag-and-drop reordering of two-level lists. -version: 0.4.1 +version: 0.4.2 homepage: https://github.com/philip-brink/DragAndDropLists environment: