Skip to content

Commit

Permalink
Update readme (#90)
Browse files Browse the repository at this point in the history
* Update readme file

* Update readme file

* Update readme file

* Update readme file

* Update README.md
  • Loading branch information
cp-sneha-s authored Dec 4, 2024
1 parent da427dd commit 5288319
Show file tree
Hide file tree
Showing 13 changed files with 20 additions and 9 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@ migrate_working_dir/
build/
/gif/
/cta/

5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 1.1.2

### Enhancement
- Update readme

## 1.1.1

### Enhancement
Expand Down
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<p align="center"> <a href="https://canopas.com/contact"><img src="https://github.com/user-attachments/assets/35d53858-0b59-49dd-84ee-8ca4fb6817a9"></a></p>


# 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.
Expand All @@ -19,16 +20,18 @@ This library is a powerful and easy-to-use solution for implementing animated li

### Reorderable List

<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%">
<img src="https://github.com/user-attachments/assets/5b57dbf3-ca95-47a0-8c70-1e35a670f93f?raw=true" width="32%"> <img
src="https://github.com/user-attachments/assets/c908916c-3a1c-4bba-a278-c340a455faeb?raw=true" width="32%">

### List Animations

<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%">
<img src="https://github.com/user-attachments/assets/b404f3f4-a525-4e1c-a3a2-550a77def211?raw=true" width="32%"> <img
src="https://github.com/user-attachments/assets/bf3d81bf-241a-4d29-be94-4c3f10337c31?raw=true" width="32%">

### Grid Animations

<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%">

<img src="https://github.com/user-attachments/assets/69c53449-6547-4bf6-b045-75724510d061?raw=true" width="32%"> <img
src="https://github.com/user-attachments/assets/d7482946-5a1b-47b6-bfa4-064b14355526?raw=true" width="32%">

## How to use it?

Expand Down
4 changes: 2 additions & 2 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ class _HomePageState extends State<HomePage> {
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.
Expand All @@ -247,7 +247,7 @@ class _HomePageState extends State<HomePage> {
);
},
*/
),
),
),
],
),
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ packages:
path: ".."
relative: true
source: path
version: "1.1.0"
version: "1.1.2"
args:
dependency: transitive
description:
Expand Down
Binary file removed gif/demo.gif
Binary file not shown.
Binary file removed gif/demo1.gif
Binary file not shown.
Binary file removed gif/demo2.gif
Binary file not shown.
Binary file removed gif/demo3.gif
Binary file not shown.
Binary file removed gif/reorderable-grid.gif
Binary file not shown.
Binary file removed gif/reorderable-list.gif
Binary file not shown.
4 changes: 3 additions & 1 deletion lib/src/builder/motion_animated_builder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,9 @@ class MotionBuilderState extends State<MotionBuilder>
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) {
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit 5288319

Please sign in to comment.