services_component_service.dart 644 B

1234567891011121314151617181920212223242526
  1. /*
  2. * Community 组件的组件路由
  3. */
  4. import 'package:flutter/cupertino.dart';
  5. import 'package:router/componentRouter/service_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/services/services_page.dart';
  10. part 'services_component_service.g.dart';
  11. @Riverpod(keepAlive: true)
  12. ServiceService servicesService(Ref ref) {
  13. return ServicesComponentService();
  14. }
  15. class ServicesComponentService extends ServiceService {
  16. @override
  17. void startServicePage() {
  18. ServicesPage.startInstance();
  19. }
  20. }