services_page_router.dart 906 B

12345678910111213141516171819202122232425262728293031
  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/services/homeService/home_service_page.dart';
  6. import '../../modules/services/services_page.dart';
  7. part 'services_page_router.gr.dart';
  8. /*\
  9. * services模块的路由
  10. */
  11. @AutoRouterConfig(replaceInRouteName: 'Page|Screen,PageRoute')
  12. class ServicesPageRouter extends _$ServicesPageRouter {
  13. @override
  14. List<AutoRoute> get routes => [
  15. CustomRoute(
  16. page: ServicesPageRoute.page,
  17. path: RouterPath.services,
  18. transitionsBuilder: applySlideTransition,
  19. children: [
  20. CustomRoute(
  21. page: HomeServicePageRoute.page,
  22. path: 'home_service',
  23. transitionsBuilder: applySlideTransition
  24. ),
  25. ]
  26. ),
  27. ];
  28. }