payment_page_router.dart 1.3 KB

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