auth_page_router.dart 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. import 'package:auto_route/auto_route.dart';
  2. import 'package:domain/entity/id_name_entity.dart';
  3. import 'package:flutter/material.dart';
  4. import 'package:router/ext/auto_router_extensions.dart';
  5. import 'package:router/path/router_path.dart';
  6. import '../../modules/auth_login/auth_login_page.dart';
  7. import '../../modules/forgot_input/forgot_input_page.dart';
  8. import '../../modules/forgot_verify/forgot_verify_page.dart';
  9. import '../../modules/sign_up/sign_up_page.dart';
  10. import '../../modules/sing_up_verify/sign_up_verify_page.dart';
  11. import '../../modules/sing_up_success/sign_up_success_page.dart';
  12. import '../../modules/select_estate/select_estate_page.dart';
  13. import '../../modules/select_unit/select_unit_page.dart';
  14. import '../../modules/select_role/select_role_page.dart';
  15. import '../../modules/tenant_doc/tenant_doc_page.dart';
  16. import '../../modules/estate_upload_success/estate_upload_success_page.dart';
  17. part 'auth_page_router.gr.dart';
  18. /*\
  19. * 全局的通用页面的路由
  20. */
  21. @AutoRouterConfig(replaceInRouteName: 'Page|Screen,PageRoute')
  22. class AuthPageRouter extends _$AuthPageRouter {
  23. @override
  24. List<AutoRoute> get routes => [
  25. CustomRoute(page: AuthLoginPageRoute.page, path: RouterPath.authLogin, transitionsBuilder: applySlideTransition),
  26. CustomRoute(page: ForgotInputPageRoute.page, path: RouterPath.authForgotInput, transitionsBuilder: applySlideTransition),
  27. CustomRoute(page: ForgotVerifyPageRoute.page, path: RouterPath.authForgotVerify, transitionsBuilder: applySlideTransition),
  28. CustomRoute(page: SignUpPageRoute.page, path: RouterPath.authSignUp, transitionsBuilder: applySlideTransition),
  29. CustomRoute(page: SignUpVerifyPageRoute.page, path: RouterPath.authSignUpVerify, transitionsBuilder: applySlideTransition),
  30. CustomRoute(page: SignUpSuccessPageRoute.page, path: RouterPath.authSignUpSuccess, transitionsBuilder: applySlideTransition),
  31. CustomRoute(page: SelectEstatePageRoute.page, path: RouterPath.authSelectEstate, transitionsBuilder: applySlideTransition),
  32. CustomRoute(page: SelectUnitPageRoute.page, path: RouterPath.authSelectUnit, transitionsBuilder: applySlideTransition),
  33. CustomRoute(page: SelectRolePageRoute.page, path: RouterPath.authSelectRole, transitionsBuilder: applySlideTransition),
  34. CustomRoute(page: TenantDocPageRoute.page, path: RouterPath.authTenantDoc, transitionsBuilder: applySlideTransition),
  35. CustomRoute(page: EstateUploadSuccessPageRoute.page, path: RouterPath.authEstateUploadSuccess, transitionsBuilder: applySlideTransition),
  36. ];
  37. }