property_page_router.dart 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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/property/page/property_page.dart';
  6. import '../../modules/ioan/page/property_ioan_page.dart';
  7. import '../../modules/news/page/property_news_page.dart';
  8. import '../../modules/sale/page/property_sale_page.dart';
  9. import '../../modules/rent/page/property_rent_page.dart';
  10. part 'property_page_router.gr.dart';
  11. /*\
  12. * Property 模块的路由
  13. */
  14. @AutoRouterConfig(replaceInRouteName: 'Page|Screen,PageRoute')
  15. class PropertyPageRouter extends _$PropertyPageRouter {
  16. @override
  17. List<AutoRoute> get routes => [
  18. CustomRoute(
  19. page: PropertyPageRoute.page,
  20. path: RouterPath.property,
  21. transitionsBuilder: applySlideTransition,
  22. children: [
  23. CustomRoute(
  24. page: PropertyIoanPageRoute.page,
  25. path: RouterPath.propertyIoan,
  26. transitionsBuilder: applySlideTransition,
  27. ),
  28. CustomRoute(
  29. page: PropertyNewsPageRoute.page,
  30. path: RouterPath.propertyNews,
  31. transitionsBuilder: applySlideTransition,
  32. ),
  33. CustomRoute(
  34. page: PropertySalePageRoute.page,
  35. path: RouterPath.propertySale,
  36. transitionsBuilder: applySlideTransition,
  37. ),
  38. CustomRoute(
  39. page: PropertyRentPageRoute.page,
  40. path: RouterPath.propertyRent,
  41. transitionsBuilder: applySlideTransition,
  42. ),
  43. ]
  44. ),
  45. ];
  46. }