controllers.dart 1.5 KB

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