diff --git a/.gitignore b/.gitignore
index ed64540..5693a64 100644
--- a/.gitignore
+++ b/.gitignore
@@ -30,3 +30,4 @@ migrate_working_dir/
build/
/gif/
/cta/
+
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3c4b71f..409b115 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,8 @@
+## 1.1.2
+
+### Enhancement
+- Update readme
+
## 1.1.1
### Enhancement
diff --git a/README.md b/README.md
index f7bf806..5b1d6ec 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,6 @@
+
# animated_reorderable_list
This library is a powerful and easy-to-use solution for implementing animated list and grid with drag-and-drop functionality in Flutter.
@@ -19,16 +20,18 @@ This library is a powerful and easy-to-use solution for implementing animated li
### Reorderable List
-
+
### List Animations
-
+
### Grid Animations
-
-
+
## How to use it?
diff --git a/example/lib/main.dart b/example/lib/main.dart
index 3267387..7bee192 100644
--- a/example/lib/main.dart
+++ b/example/lib/main.dart
@@ -225,7 +225,7 @@ class _HomePageState extends State {
setState(() {});
},
proxyDecorator: proxyDecorator,
- isSameItem: (a, b) => a.index == b.index
+ // isSameItem: (a, b) => a.index == b.index
/* A custom builder that is for inserting items with animations.
@@ -247,7 +247,7 @@ class _HomePageState extends State {
);
},
*/
- ),
+ ),
),
],
),
diff --git a/example/pubspec.lock b/example/pubspec.lock
index dc87db7..49ab9b2 100644
--- a/example/pubspec.lock
+++ b/example/pubspec.lock
@@ -23,7 +23,7 @@ packages:
path: ".."
relative: true
source: path
- version: "1.1.0"
+ version: "1.1.2"
args:
dependency: transitive
description:
diff --git a/gif/demo.gif b/gif/demo.gif
deleted file mode 100644
index f9237f2..0000000
Binary files a/gif/demo.gif and /dev/null differ
diff --git a/gif/demo1.gif b/gif/demo1.gif
deleted file mode 100644
index 7ded52d..0000000
Binary files a/gif/demo1.gif and /dev/null differ
diff --git a/gif/demo2.gif b/gif/demo2.gif
deleted file mode 100644
index 8ebd436..0000000
Binary files a/gif/demo2.gif and /dev/null differ
diff --git a/gif/demo3.gif b/gif/demo3.gif
deleted file mode 100644
index a3b8219..0000000
Binary files a/gif/demo3.gif and /dev/null differ
diff --git a/gif/reorderable-grid.gif b/gif/reorderable-grid.gif
deleted file mode 100644
index 903928c..0000000
Binary files a/gif/reorderable-grid.gif and /dev/null differ
diff --git a/gif/reorderable-list.gif b/gif/reorderable-list.gif
deleted file mode 100644
index 5cf342e..0000000
Binary files a/gif/reorderable-list.gif and /dev/null differ
diff --git a/lib/src/builder/motion_animated_builder.dart b/lib/src/builder/motion_animated_builder.dart
index 944ea7e..cb68cb4 100644
--- a/lib/src/builder/motion_animated_builder.dart
+++ b/lib/src/builder/motion_animated_builder.dart
@@ -635,7 +635,9 @@ class MotionBuilderState extends State
final _ActiveItem? incomingItem = _activeItemAt(_incomingItems, index);
if (outgoingItem != null) {
- final child = _items[index]!.widget;
+ final item = _items[index];
+ if (item == null) return const SizedBox();
+ final child = item.widget;
return _removeItemBuilder(outgoingItem, child);
}
if (_dragInfo != null && index >= _itemsCount) {
diff --git a/pubspec.yaml b/pubspec.yaml
index 75a0464..6105a00 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,6 +1,6 @@
name: animated_reorderable_list
description: A Flutter Reorderable Animated List with simple implementation and smooth transition.
-version: 1.1.1
+version: 1.1.2
repository: https://github.com/canopas/animated_reorderable_list
environment: