createRoute method
Creates the Route that corresponds to this page.
The created Route must have its Route.settings property set to this Page.
Implementation
Route<T> createRoute(BuildContext context) {
return PageRouteBuilder(
settings: this,
transitionsBuilder: (context, a1, a2, page) {
var curveTween = CurveTween(curve: Curves.easeIn);
return FadeTransition(opacity: a1.drive(curveTween), child: page);
},
pageBuilder: (context, animation, animation2) => child,
);
}