router

router utils

Setup

定义路由 Map: p_router/router_config.dart

Map<String, WidgetBuilder> route = {
  HomePage.routeName: (_) => HomePage(),
  MainPage.routeName: (_) => MainPage(),
  MinePage.routeName: (_) => MinePage(),
};

在 MaterialApp 中设置 navigatorKey

MaterialApp(
    navigatorKey: RouterUtils.navigatorKey,
    routes: route,
    home: Builder(
        builder: (context) {
            return SplashPage();
        },
    ),
    ...
}

Libraries

fade_route
no_animation_route
p_router
scale_route
slide_from_bottom_route