property_component_service.dart 831 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * Property 组件的组件路由
  3. */
  4. import 'package:flutter/cupertino.dart';
  5. import 'package:router/componentRouter/property_service.dart';
  6. import 'package:flutter/material.dart';
  7. import 'package:hooks_riverpod/hooks_riverpod.dart';
  8. import 'package:riverpod_annotation/riverpod_annotation.dart';
  9. import '../../modules/news_detail/property_news_detail_page.dart';
  10. import '../../modules/property/page/property_page.dart';
  11. part 'property_component_service.g.dart';
  12. @Riverpod(keepAlive: true)
  13. PropertyService propertyService(Ref ref) {
  14. return PropertyComponentService();
  15. }
  16. class PropertyComponentService extends PropertyService {
  17. @override
  18. void startPropertyPage() {
  19. PropertyPage.startInstance();
  20. }
  21. @override
  22. void startPropertyNewsDetailPage(int id) {
  23. PropertyNewsDetailPage.startInstance(id: id);
  24. }
  25. }