auth_page_router.dart 614 B

12345678910111213141516171819202122
  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/auth_login/page/Profile_edit_page.dart';
  6. part 'auth_page_router.gr.dart';
  7. /*\
  8. * 全局的通用页面的路由
  9. */
  10. @AutoRouterConfig(replaceInRouteName: 'Page|Screen,PageRoute')
  11. class AuthPageRouter extends _$AuthPageRouter {
  12. @override
  13. List<AutoRoute> get routes => [
  14. CustomRoute(page: AuthLoginPageRoute.page, path: RouterPath.authLogin, transitionsBuilder: applySlideTransition),
  15. ];
  16. }