controllers.dart 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. import 'package:get/get.dart';
  2. import 'package:naiyouwl/app/clash/service/clash_service.dart';
  3. import 'package:naiyouwl/app/controller/GlobalController.dart';
  4. import 'package:naiyouwl/app/controller/config.dart';
  5. import 'package:naiyouwl/app/controller/core.dart';
  6. import 'package:naiyouwl/app/controller/dialog.dart';
  7. import 'package:naiyouwl/app/controller/protocol.dart';
  8. import 'package:naiyouwl/app/controller/service.dart';
  9. import 'package:naiyouwl/app/controller/tray.dart';
  10. import 'package:naiyouwl/app/controller/window.dart';
  11. class Controllers {
  12. late final TrayController tray;
  13. late final WindowController window;
  14. // late final ProtocolController protocol;
  15. late final CoreController core;
  16. late final ConfigController config;
  17. late final ClashService service;
  18. late final ServiceController cc_service;
  19. late final GlobalController global;
  20. late final DialogController dialog;
  21. // late final PageLogController pageLog;
  22. // late final PageMainController pageMain;
  23. // late final PageHomeController pageHome;
  24. // late final PageRuleController pageRule;
  25. // late final PageProxieController pageProxie;
  26. // late final PageProfileController pageProfile;
  27. // late final PageSettingController pageSetting;
  28. // late final PageConnectionController pageConnection;
  29. void init() {
  30. tray = Get.find();
  31. window = Get.find();
  32. //protocol = Get.find();
  33. core = Get.find();
  34. config = Get.find();
  35. service = Get.find();
  36. global = Get.find();
  37. dialog = Get.find();
  38. cc_service = Get.find();
  39. // pageLog = Get.find();
  40. // pageMain = Get.find();
  41. // pageHome = Get.find();
  42. // pageRule = Get.find();
  43. // pageProxie = Get.find();
  44. // pageProfile = Get.find();
  45. // pageSetting = Get.find();
  46. // pageConnection = Get.find();
  47. }
  48. }
  49. final controllers = Controllers();