Skip to content

Commit 5288319

Browse files
authored
Update readme (#90)
* Update readme file * Update readme file * Update readme file * Update readme file * Update README.md
1 parent da427dd commit 5288319

13 files changed

+20
-9
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,4 @@ migrate_working_dir/
3030
build/
3131
/gif/
3232
/cta/
33+

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 1.1.2
2+
3+
### Enhancement
4+
- Update readme
5+
16
## 1.1.1
27

38
### Enhancement

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<p align="center"> <a href="https://canopas.com/contact"><img src="https://github.com/user-attachments/assets/35d53858-0b59-49dd-84ee-8ca4fb6817a9"></a></p>
22

3+
34
# animated_reorderable_list
45

56
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
1920

2021
### Reorderable List
2122

22-
<img src="https://github.com/canopas/animated_reorderable_list/raw/main/gif/reorderable-grid.gif" width="32%"> <img src="https://github.com/canopas/animated_reorderable_list/raw/main/gif/reorderable-list.gif" width="32%">
23+
<img src="https://github.com/user-attachments/assets/5b57dbf3-ca95-47a0-8c70-1e35a670f93f?raw=true" width="32%"> <img
24+
src="https://github.com/user-attachments/assets/c908916c-3a1c-4bba-a278-c340a455faeb?raw=true" width="32%">
2325

2426
### List Animations
2527

26-
<img src="https://github.com/canopas/animated_reorderable_list/raw/main/gif/demo.gif" width="32%"> <img src="https://github.com/canopas/animated_reorderable_list/raw/main/gif/demo1.gif" width="32%">
28+
<img src="https://github.com/user-attachments/assets/b404f3f4-a525-4e1c-a3a2-550a77def211?raw=true" width="32%"> <img
29+
src="https://github.com/user-attachments/assets/bf3d81bf-241a-4d29-be94-4c3f10337c31?raw=true" width="32%">
2730

2831
### Grid Animations
2932

30-
<img src="https://github.com/canopas/animated_reorderable_list/raw/main/gif/demo2.gif" width="32%"> <img src="https://github.com/canopas/animated_reorderable_list/raw/main/gif/demo3.gif" width="32%">
31-
33+
<img src="https://github.com/user-attachments/assets/69c53449-6547-4bf6-b045-75724510d061?raw=true" width="32%"> <img
34+
src="https://github.com/user-attachments/assets/d7482946-5a1b-47b6-bfa4-064b14355526?raw=true" width="32%">
3235

3336
## How to use it?
3437

example/lib/main.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ class _HomePageState extends State<HomePage> {
225225
setState(() {});
226226
},
227227
proxyDecorator: proxyDecorator,
228-
isSameItem: (a, b) => a.index == b.index
228+
// isSameItem: (a, b) => a.index == b.index
229229

230230
/* A custom builder that is for inserting items with animations.
231231
@@ -247,7 +247,7 @@ class _HomePageState extends State<HomePage> {
247247
);
248248
},
249249
*/
250-
),
250+
),
251251
),
252252
],
253253
),

example/pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ packages:
2323
path: ".."
2424
relative: true
2525
source: path
26-
version: "1.1.0"
26+
version: "1.1.2"
2727
args:
2828
dependency: transitive
2929
description:

gif/demo.gif

-7.75 MB
Binary file not shown.

gif/demo1.gif

-7.99 MB
Binary file not shown.

gif/demo2.gif

-4.83 MB
Binary file not shown.

gif/demo3.gif

-4.5 MB
Binary file not shown.

gif/reorderable-grid.gif

-4.87 MB
Binary file not shown.

gif/reorderable-list.gif

-3.8 MB
Binary file not shown.

lib/src/builder/motion_animated_builder.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,9 @@ class MotionBuilderState extends State<MotionBuilder>
635635
final _ActiveItem? incomingItem = _activeItemAt(_incomingItems, index);
636636

637637
if (outgoingItem != null) {
638-
final child = _items[index]!.widget;
638+
final item = _items[index];
639+
if (item == null) return const SizedBox();
640+
final child = item.widget;
639641
return _removeItemBuilder(outgoingItem, child);
640642
}
641643
if (_dragInfo != null && index >= _itemsCount) {

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: animated_reorderable_list
22
description: A Flutter Reorderable Animated List with simple implementation and smooth transition.
3-
version: 1.1.1
3+
version: 1.1.2
44
repository: https://github.com/canopas/animated_reorderable_list
55

66
environment:

0 commit comments

Comments
 (0)