payment_page_router.dart 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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/payment/payment_page.dart';
  6. import '../../modules/payment/info/info_screen.dart';
  7. import '../../modules/payment/manage/manage_screen.dart';
  8. import '../../modules/payment/condo/condo_screen.dart';
  9. import '../../modules/payment/condo/active/condo_active_screen.dart';
  10. import '../../modules/payment/condo/history/condo_history_screen.dart';
  11. import '../../modules/payment/condo/payment/condo_payment_screen.dart';
  12. part 'payment_page_router.gr.dart';
  13. /*\
  14. * Payment 模块的路由
  15. */
  16. @AutoRouterConfig(replaceInRouteName: 'Page|Screen,PageRoute')
  17. class PaymentPageRouter extends _$PaymentPageRouter {
  18. @override
  19. List<AutoRoute> get routes => [
  20. CustomRoute(
  21. page: PaymentPageRoute.page,
  22. path: RouterPath.payment,
  23. transitionsBuilder: applySlideTransition,
  24. children: [
  25. AutoRoute(page: InfoPageRoute.page, path: 'info'),
  26. AutoRoute(page: CondoPageRoute.page, path: 'condo', children: [
  27. AutoRoute(page: CondoPaymentPageRoute.page, path: 'payment'),
  28. AutoRoute(page: CondoActivePageRoute.page, path: 'active'),
  29. AutoRoute(page: CondoHistoryPageRoute.page, path: 'history'),
  30. ]),
  31. AutoRoute(page: ManagePageRoute.page, path: 'manage'),
  32. ],
  33. ),
  34. ];
  35. }