app_constant.dart 1.5 KB

1234567891011121314151617181920212223242526272829303132
  1. // ignore_for_file: constant_identifier_names
  2. // ignore: non_constant_identifier_names
  3. import 'package:flutter/foundation.dart';
  4. import 'package:flutter/material.dart';
  5. class AppConstant {
  6. /// App运行在Release环境时,inProduction为true;当App运行在Debug和Profile环境时,inProduction为false
  7. static const bool inProduction = kReleaseMode; //本地打包的编译环境是 Debug 还是 Release (自动生成,不需手动修改)
  8. static const String theme = 'AppTheme';
  9. static const String locale = 'locale';
  10. // 本地SP存储key
  11. static const storageGuideFirst = 'guide_first'; //是否经历过Guide
  12. static const storageToken = 'token'; //用户的Token
  13. static const searchJobHistoryRecord = 'search_job_history_record'; //兼职工作搜索记录
  14. static const storageNotificationEnable = 'storage_notification_enable'; //应用设置的推送是否开启
  15. static const storageDeviceUUID = 'storage_device_uuid'; //设备的UUID
  16. //消息通知Key
  17. static const eventProfile2Refresh = 'event_profile_refresh'; //通知用户信息需要刷新
  18. static const eventHotelInfoRefreshFinish = 'event_profile_refresh_finish'; //用户信息已刷新完成
  19. static const eventReportIssueSuccess = 'event_report_issue'; //工作意见报告提交成功
  20. static const eventHomeDataRefresh = 'event_home_data_refresh'; //只刷新首页的数据
  21. // navbar 导航栏高度
  22. static const double navBarHeight = kToolbarHeight;
  23. // tabbar 高度 (pt)
  24. static const double tabBarHeight = 44;
  25. }