facility_component_service.dart 652 B

12345678910111213141516171819202122232425
  1. /*
  2. * Community 组件的组件路由
  3. */
  4. import 'package:flutter/cupertino.dart';
  5. import 'package:router/componentRouter/facility_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/facility/page/facility_page.dart';
  10. part 'facility_component_service.g.dart';
  11. @Riverpod(keepAlive: true)
  12. FacilityService facilityService(Ref ref) {
  13. return FacilityComponentService();
  14. }
  15. class FacilityComponentService extends FacilityService {
  16. @override
  17. void startFacilityPage() {
  18. FacilityPage.startInstance();
  19. }
  20. }