A standard hero animation flies the hero between one route to a new route, landing a page or screen at a different location and with a different size.
Define a route using MaterialPageRoute, CupertinoPageRoute, or build a custom route using PageRouteBuilder.
Change the size of the image at the end of the transition by wrapping the destination’s image in a SizedBox.
Change the location of the image by placing the destination’s image in a layout widget.
In this post you will learnStandard Hero Animations creations:
Using hero animations package as a library:
Adding hero animation Dependency package to Flutter: