global.dart 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. import 'package:eitc_erm_dental_flutter/funcs.dart';
  2. import 'package:flutter/services.dart';
  3. import 'package:image/image.dart';
  4. ///设备WIFI前缀,固定的
  5. const String deviceWifiPrefix = "mlg_";
  6. ///Flavor慧视健康
  7. const String flavorHsjk = "hsjk";
  8. ///Flavor慧视通
  9. const String flavorHst = "hst";
  10. ///慧视健康IOS appid
  11. const String _iosAppIdHsjk = "6737254914";
  12. ///慧视通IOS appid
  13. const String _iosAppIdHst = "00000000";
  14. ///IOS的appid,默认返回慧视健康的
  15. String get iosAppId {
  16. if (isHst) {
  17. return _iosAppIdHst;
  18. } else {
  19. return _iosAppIdHsjk;
  20. }
  21. }
  22. ///上传接口appid
  23. const String uploadApplicationKey = "GK-KQJ";
  24. ///上传接口文件类型
  25. const String uploadFileType = "oral_mirror_image";
  26. ///Token
  27. String _token = "";
  28. ///Token
  29. String get token => _token;
  30. ///是否有token
  31. bool get hasToken => token.isNotEmpty;
  32. ///更新Token
  33. void updateToken(String str) {
  34. _token = str;
  35. }
  36. ///是否正在同步咨询人数据
  37. bool isSyncingPatient = false;
  38. ///选择的咨询人ID
  39. int selectedPatientId = -1;
  40. ///照片字体
  41. BitmapFont? photoFont;
  42. ///视频channel名字
  43. const String _videoChannelName = "videoControl";
  44. ///文件channel名字
  45. const String _fileChannelName = "fileControl";
  46. ///视频channel
  47. final MethodChannel videoChannel = const MethodChannel(_videoChannelName);
  48. ///文件channel
  49. final MethodChannel fileChannel = const MethodChannel(_fileChannelName);