Example illustrating the use of Hero, AnimatedPositioned and Flow widgets to animate transition of widgets in a grid.
Sometimes, you need to transition between two different kinds of grids in your app. For example, you have a grid of images and the user wants to see only the user’s favorites. Some widgets may stay the same, while others change. How can you animate this transition, making existing widgets smoothly move and resize within the grid?
In depth step by step explanations in Medium
In lib
folder:
none
shows hte two grids without animationhero
shows how to animate the transition using the Hero widgetanimated
shows how to animate the transition using AnimatedPositioned widgetflow
shows how to animate the transition using the Flow widgetwidgets
has the item shown in all gridsmain.dart
is a page showing buttons to go to each option.
If you found a bug, please open an issue
Do you have other cool animation options? Feel free to submit a pull request