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

Support reordering with animation for programatic changes to the data source #1

Closed
aytunch opened this issue Nov 28, 2021 · 1 comment
Labels
enhancement New feature or request question Further information is requested

Comments

@aytunch
Copy link

aytunch commented Nov 28, 2021

In my app, I don't need the user to reorder the contents but they are done when some filters are enabled.

Use case:

  • Grids show cars.
  • When user presses red color, I want to show only the red colored cars
  • And I want this filtering to happen in an animated way.
  • So there might be several cars that are removed from different places of the cars array.
  • When the filter is removed, all cars should be added in place with ordering animation.

Can I use this package for this need?

This implicitly_animated_reorderable_list package does it using a diff algorithm

@casvanluijtelaar
Copy link
Owner

That's not really this packages' use case, so I don't think it's something I would add to the package itself. This package would a good base to start from. animating between two spots in the grid is already included you'd just have to replace the drag and drop behaviour to whatever controller you desire. If you think you can include it in an elegant, non interfering way, pull requests are always welcome!

@casvanluijtelaar casvanluijtelaar added enhancement New feature or request question Further information is requested labels Nov 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants