main_state.dart 1.3 KB

12345678910111213141516171819202122
  1. import 'package:cs_resources/generated/assets.dart';
  2. import 'package:domain/entity/home_module.dart';
  3. import 'package:plugin_basic/basic_export.dart';
  4. class MainState {
  5. //当前显示的模块
  6. List<HomeModule> datas = [];
  7. //全部的模块
  8. final List<HomeModule> modules = [
  9. //ER类型
  10. HomeModule(key: 'er/lab-req', moduleName: 'Labour Request'.tr, moduleIconPath: Assets.mainHomeLabourRequest, iconWidth: 50, iconHeight: 40.3),
  11. HomeModule(key: 'er/jobs', moduleName: 'Job List'.tr, moduleIconPath: Assets.mainHomeJobList, iconWidth: 45, iconHeight: 45),
  12. //OA类型
  13. HomeModule(key: 'oa/lab-req', moduleName: 'Labour Request'.tr, moduleIconPath: Assets.mainHomeLabourRequest, iconWidth: 50, iconHeight: 40.3),
  14. HomeModule(key: 'oa/jobs', moduleName: 'Job List'.tr, moduleIconPath: Assets.mainHomeJobList, iconWidth: 45, iconHeight: 45),
  15. HomeModule(key: 'oa/lab-req/review', moduleName: 'Labour Request Review'.tr, moduleIconPath: Assets.mainHomeLabourRequestReview, iconWidth: 50.5, iconHeight: 43),
  16. HomeModule(key: 'template', moduleName: 'Default Job Title'.tr, moduleIconPath: Assets.mainHomeJobTemplate, iconWidth: 48.5, iconHeight: 46.5), //越南的模版
  17. HomeModule(key: 'jobTitle', moduleName: 'Default Job Title'.tr, moduleIconPath: Assets.mainHomeJobTemplate, iconWidth: 48.5, iconHeight: 46.5), //新加坡的模板
  18. ];
  19. }