home_state.dart 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. import 'package:cs_resources/generated/assets.dart';
  2. import 'package:cs_resources/generated/l10n.dart';
  3. class HomeState {
  4. final homeCategory = [
  5. {
  6. 'category_name': S.current.facility,
  7. 'category_icon': Assets.mainHomeFacilityIcon,
  8. },
  9. {
  10. 'category_name': S.current.form,
  11. 'category_icon': Assets.mainHomeFormsIcon,
  12. },
  13. {
  14. 'category_name': S.current.notice_board,
  15. 'category_icon': Assets.mainHomeBoticeBoardIcon,
  16. },
  17. {
  18. 'category_name': S.current.property,
  19. 'category_icon': Assets.mainHomePropertyIcon,
  20. },
  21. {
  22. 'category_name': S.current.service,
  23. 'category_icon': Assets.mainHomeServiceIcon,
  24. },
  25. {
  26. 'category_name': S.current.community,
  27. 'category_icon': Assets.mainHomeCommunityIcon,
  28. }
  29. ];
  30. final lastNews = [
  31. {
  32. 'category_name': S.current.property,
  33. 'category_icon': Assets.mainHomePropertyNews,
  34. 'icon_width': 38.5,
  35. 'icon_height': 39.5,
  36. 'margin_right': 13.0,
  37. },
  38. {
  39. 'category_name': S.current.internal,
  40. 'category_icon': Assets.mainHomeInternalNews,
  41. 'icon_width': 33.5,
  42. 'icon_height': 41.0,
  43. 'margin_right': 11.0,
  44. },
  45. {
  46. 'category_name': S.current.info,
  47. 'category_icon': Assets.mainHomeInfoNews,
  48. 'icon_width': 44.0,
  49. 'icon_height': 42.0,
  50. 'margin_right': 6.0,
  51. },
  52. {
  53. 'category_name': S.current.publish,
  54. 'category_icon': Assets.mainHomePublishNews,
  55. 'icon_width': 40.5,
  56. 'icon_height': 42.5,
  57. 'margin_right': 11.0,
  58. }
  59. ];
  60. final manage_guide = [
  61. {
  62. 'category_name': S.current.introduction_to_info_pack,
  63. 'category_icon': Assets.mainIntroductionGuide,
  64. 'icon_width': 118.5,
  65. 'icon_height': 73.5,
  66. 'margin_top': 12.0,
  67. },
  68. {
  69. 'category_name': S.current.your_roles_responsibilities,
  70. 'category_icon': Assets.mainRolesGuide,
  71. 'icon_width': 116,
  72. 'icon_height': 78,
  73. 'margin_top': 8.5,
  74. },
  75. {
  76. 'category_name': S.current.property_guide,
  77. 'category_icon': Assets.mainPropertyGuide,
  78. 'icon_width': 117.0,
  79. 'icon_height': 76.5,
  80. 'margin_top': 10.0,
  81. },
  82. ];
  83. //模拟数据
  84. final lastTrans = [
  85. {
  86. 'title': '18 Sep 2024 Blk 39 #09-XX',
  87. 'price': '1,001 - 1,337 sqft',
  88. 'total': '1.338 M',
  89. 'unit': '',
  90. },
  91. {
  92. 'title': 'Jul 2024 Blk XX #XX to XX',
  93. 'price': '1,100 - 1,200 sqft',
  94. 'total': '4,000 M',
  95. 'unit': 'per month',
  96. },
  97. ];
  98. }