BuildContext is required to perform a transition
using the animation type to animate the child into a new route.
replacement will remove all the stack of pages into a new route
RouteAnimation package will help you to create good looking
transition animation between your pages with a simple call
Available animation types