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:
noneshows hte two grids without animationheroshows how to animate the transition using the Hero widgetanimatedshows how to animate the transition using AnimatedPositioned widgetflowshows how to animate the transition using the Flow widgetwidgetshas the item shown in all gridsmain.dartis 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