services_component_service.dart 720 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Community 组件的组件路由
  3. */
  4. import 'package:cpt_services/modules/services/services_main_page.dart';
  5. import 'package:flutter/cupertino.dart';
  6. import 'package:router/componentRouter/service_service.dart';
  7. import 'package:flutter/material.dart';
  8. import 'package:hooks_riverpod/hooks_riverpod.dart';
  9. import 'package:riverpod_annotation/riverpod_annotation.dart';
  10. import '../../modules/services/services_page.dart';
  11. part 'services_component_service.g.dart';
  12. @Riverpod(keepAlive: true)
  13. ServiceService servicesService(Ref ref) {
  14. return ServicesComponentService();
  15. }
  16. class ServicesComponentService extends ServiceService {
  17. @override
  18. void startServicePage() {
  19. ServicesMainPage.startInstance();
  20. }
  21. }