Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Animation duration for item removal and addition #94

Closed
naderhezzy opened this issue Sep 11, 2023 · 9 comments
Closed

Animation duration for item removal and addition #94

naderhezzy opened this issue Sep 11, 2023 · 9 comments
Labels
enhancement New feature or request
Milestone

Comments

@naderhezzy
Copy link

Hello, and thanks for the great package.
My question: Is it possible to control the item-removal's animation speed?

The animation duration for the removed item with an animated opacity
The animation duration on all items that change their position because of the removed item

Thank you in advance.

@karvulf
Copy link
Owner

karvulf commented Sep 12, 2023

Thank you for opening, I totally forgot this request, I hope I can do that this week @naderhezzy

@karvulf karvulf added the enhancement New feature or request label Sep 12, 2023
@naderhezzy
Copy link
Author

We hope that too and we will be waiting for it, just tell me if you need any help.

@karvulf karvulf added this to the v5.0.0 milestone Sep 17, 2023
@karvulf
Copy link
Owner

karvulf commented Sep 17, 2023

Hello @naderhezzy
I have some news for you, I added a duration for the position update. Unfortunately I cannot add a duration for removed items because currently it is not supported to animate this. I got some issues using a widget that is already removed, so I have to overthink how I could solve this. But I will do this once I finished the release 5.0.0. I hope that's ok for you

@karvulf
Copy link
Owner

karvulf commented Sep 17, 2023

I will release the version v5.0.0-dev.9 that will contain a new parameter positionDuration that you can use to change the duration of the position updates.
I opened a new issue for the other duration -> #96

@karvulf karvulf closed this as completed Sep 17, 2023
@naderhezzy
Copy link
Author

Hello @karvulf
Sorry for the late answer we had two weeks off and now we are back and we found this amazing news, thank you for this.
We are waiting for the release to test it.

@naderhezzy
Copy link
Author

Hello @karvulf
are you planning to release the new version any sooner?
thank you

@karvulf
Copy link
Owner

karvulf commented Oct 6, 2023

Hello @naderhezzy

I released one version that contains the duration for the addition of items, only the removal will be a bit more tricky and will take longer before I can release that part.

@naderhezzy
Copy link
Author

naderhezzy commented Oct 6, 2023

Awesome!
Can you please mention the exact version so we can ensure our pubspec.yaml is pointing to the right one?
(In the package's changelog the latest version declared is 4.0.0 which was released 8 months ago)

We appreciate your help and your great job @karvulf .

@karvulf
Copy link
Owner

karvulf commented Oct 6, 2023

Change it to the following @naderhezzy

...
  flutter_reorderable_grid_view: ^5.0.0-dev.10
...

Be careful because this version contains some breaking changes. You can check them in the example app how to implement all of this: https://github.com/karvulf/flutter-reorderable-grid-view/blob/release/v5.0.0/example/lib/main.dart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants