profile_page_router.dart 972 B

1234567891011121314151617181920212223242526
  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. part 'profile_page_router.gr.dart';
  9. /*\
  10. * Profile模块路由
  11. */
  12. @AutoRouterConfig(replaceInRouteName: 'Page|Screen,PageRoute')
  13. class ProfilePageRouter extends _$ProfilePageRouter {
  14. @override
  15. List<AutoRoute> get routes => [
  16. CustomRoute(page: ProfileEditPageRoute.page, path: RouterPath.profileEdit, transitionsBuilder: applySlideTransition),
  17. CustomRoute(page: SettingPageRoute.page, path: RouterPath.settings, transitionsBuilder: applySlideTransition),
  18. CustomRoute(page: ChangeMobilePageRoute.page, path: RouterPath.settingsChangeMobile, transitionsBuilder: applySlideTransition),
  19. ];
  20. }