createRoute method

  1. @override
Route createRoute(
  1. BuildContext context
)
override

默认使用Android材料设计路由 页面的入口过渡将路线向上滑动并淡入

Implementation

@override
Route createRoute(BuildContext context) {
  route = transitionBuilder?.call(
        this,
        (_) => child,
      ) ??
      MaterialPageRoute(
        settings: this,
        builder: (_) => child,
      );
  return route;
}