profile_page_router.dart 1.1 KB

12345678910111213141516171819202122232425262728
  1. import 'package:auto_route/auto_route.dart';
  2. import 'package:flutter/material.dart';
  3. import 'package:router/ext/auto_router_extensions.dart';
  4. import 'package:router/path/router_path.dart';
  5. import '../../modules/profile_edit/Profile_edit_page.dart';
  6. import '../../modules/setting/setting_page.dart';
  7. import '../../modules/change_mobile/change_mobile_page.dart';
  8. import '../../modules/reset_password/reset_password_page.dart';
  9. part 'profile_page_router.gr.dart';
  10. /*\
  11. * Profile模块路由
  12. */
  13. @AutoRouterConfig(replaceInRouteName: 'Page|Screen,PageRoute')
  14. class ProfilePageRouter extends _$ProfilePageRouter {
  15. @override
  16. List<AutoRoute> get routes => [
  17. CustomRoute(page: ProfileEditPageRoute.page, path: RouterPath.profileEdit, transitionsBuilder: applySlideTransition),
  18. CustomRoute(page: SettingPageRoute.page, path: RouterPath.settings, transitionsBuilder: applySlideTransition),
  19. CustomRoute(page: ChangeMobilePageRoute.page, path: RouterPath.settingsChangeMobile, transitionsBuilder: applySlideTransition),
  20. CustomRoute(page: ResetPasswordPageRoute.page, path: RouterPath.settingsResetPassword, transitionsBuilder: applySlideTransition),
  21. ];
  22. }