app_constant.dart 1.5 KB

123456789101112131415161718192021222324252627282930
  1. // ignore_for_file: constant_identifier_names
  2. // ignore: non_constant_identifier_names
  3. import 'package:domain/constants/api_constants.dart';
  4. import 'package:flutter/foundation.dart';
  5. import 'package:flutter/material.dart';
  6. class AppConstant {
  7. /// App运行在Release环境时,inProduction为true;当App运行在Debug和Profile环境时,inProduction为false
  8. static const bool inProduction = kReleaseMode; //本地打包的编译环境是 Debug 还是 Release (自动生成,不需手动修改)
  9. static const String theme = 'AppTheme';
  10. static const String locale = 'locale';
  11. // 本地SP存储key
  12. static const storageGuideFirst = 'storage_guide_first'; //是否经历过Guide
  13. static const storageToken = 'storage_token'; //用户的Token
  14. static const storageNotificationEnable = 'storage_notification_enable'; //应用设置的推送是否开启
  15. static const storageDeviceUUID = 'storage_device_uuid'; //设备的UUID
  16. static const storageDarkModel = 'storage_dark_model'; //设备当前配置的模式
  17. static const storageGarageCategoryList = 'staorage_garage_category_list'; // 存储garage的分类列表
  18. //消息通知Key
  19. static const eventProfileRefresh = 'event_profile_refresh'; //通知用户信息需要刷新
  20. static const eventEstateRefresh = 'event_estate_refresh'; //通知用户的房产信息需要刷新
  21. //手机短信的国家区号
  22. static const countryCode = ApiConstants.isServerRelease ? "65" : "86"; //(测试环境为+86,正式环境为+65)
  23. }