profile_page_router.dart 1.5 KB

1234567891011121314151617181920212223242526272829303132
  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. import '../../modules/my_estate/my_estate_page.dart';
  10. import '../../modules/my_household/my_household_page.dart';
  11. part 'profile_page_router.gr.dart';
  12. /*\
  13. * Profile模块路由
  14. */
  15. @AutoRouterConfig(replaceInRouteName: 'Page|Screen,PageRoute')
  16. class ProfilePageRouter extends _$ProfilePageRouter {
  17. @override
  18. List<AutoRoute> get routes => [
  19. CustomRoute(page: ProfileEditPageRoute.page, path: RouterPath.profileEdit, transitionsBuilder: applySlideTransition),
  20. CustomRoute(page: SettingPageRoute.page, path: RouterPath.settings, transitionsBuilder: applySlideTransition),
  21. CustomRoute(page: ChangeMobilePageRoute.page, path: RouterPath.settingsChangeMobile, transitionsBuilder: applySlideTransition),
  22. CustomRoute(page: ResetPasswordPageRoute.page, path: RouterPath.settingsResetPassword, transitionsBuilder: applySlideTransition),
  23. CustomRoute(page: MyEstatePageRoute.page, path: RouterPath.profileEstate, transitionsBuilder: applySlideTransition),
  24. CustomRoute(page: MyHouseholdPageRoute.page, path: RouterPath.profileHousehold, transitionsBuilder: applySlideTransition),
  25. ];
  26. }