12345678910111213141516171819202122232425262728 |
- import 'package:auto_route/auto_route.dart';
- import 'package:flutter/material.dart';
- import 'package:router/ext/auto_router_extensions.dart';
- import 'package:router/path/router_path.dart';
- import '../../modules/auth_login/auth_login_page.dart';
- import '../../modules/forgot_input/forgot_input_page.dart';
- import '../../modules/forgot_verify/forgot_verify_page.dart';
- import '../../modules/sign_up/sign_up_page.dart';
- part 'auth_page_router.gr.dart';
- /*\
- * 全局的通用页面的路由
- */
- @AutoRouterConfig(replaceInRouteName: 'Page|Screen,PageRoute')
- class AuthPageRouter extends _$AuthPageRouter {
- @override
- List<AutoRoute> get routes => [
- CustomRoute(page: AuthLoginPageRoute.page, path: RouterPath.authLogin, transitionsBuilder: applySlideTransition),
- CustomRoute(page: ForgotInputPageRoute.page, path: RouterPath.authForgotInput, transitionsBuilder: applySlideTransition),
- CustomRoute(page: ForgotVerifyPageRoute.page, path: RouterPath.authForgotVerify, transitionsBuilder: applySlideTransition),
- CustomRoute(page: SignUpPageRoute.page, path: RouterPath.authSignUp, transitionsBuilder: applySlideTransition),
- ];
- }
|