controllers.dart 1.7 KB

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