constants_services.dart 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. class servicesConstants {
  2. static Map<String, Map<String, dynamic>> servicesType = {
  3. "houseCleaning": {
  4. "text": "houseCleaning",
  5. "type": "houseCleaning",
  6. 'code': 0,
  7. },
  8. "airConditioner": {
  9. "text": "airConditioner",
  10. "type": "airConditioner",
  11. 'code': 1,
  12. },
  13. "repaire": {
  14. "text": "维修",
  15. "type": "repaire",
  16. 'code': 2,
  17. }
  18. };
  19. static Map<String, dynamic> servicesStatus = {
  20. "0": {
  21. "text": "Pending",
  22. "type": "pending",
  23. 'code': 0,
  24. },
  25. "1": {
  26. "text": "In Progress",
  27. "type": "inProgress",
  28. 'code': 1,
  29. },
  30. "2": {
  31. "text": "completed",
  32. "type": "completed",
  33. 'code': 2,
  34. },
  35. "3": {
  36. "text": "canceled",
  37. "type": "canceled",
  38. 'code': 3,
  39. }
  40. };
  41. static Map<int, List<Map<String, dynamic>>> servicesStatusActionBtnList = {
  42. // pending, inProgress, completed, canceled
  43. servicesStatus['0']['code']: [
  44. actionBtn['0'],
  45. actionBtn['1'],
  46. actionBtn['2'],
  47. ],
  48. servicesStatus['1']['code']: [
  49. actionBtn['0'],
  50. actionBtn['1'],
  51. actionBtn['2'],
  52. ],
  53. servicesStatus['2']['code']: [
  54. actionBtn['3'],
  55. actionBtn['4'],
  56. ],
  57. servicesStatus['3']['code']: [
  58. actionBtn['3'],
  59. ]
  60. };
  61. static Map<String, dynamic> actionBtn = {
  62. "0": {
  63. "text": "Cancel",
  64. "type": "cancel",
  65. 'code': 0,
  66. 'btnColor': '#FFFE6C00',
  67. 'btnWidth': 65.0,
  68. 'btnHeight': 35.0,
  69. },
  70. "1": {
  71. "text": "Contact Merchant",
  72. "type": "contactMerchant",
  73. 'code': 1,
  74. 'btnColor': '#FF4161D0',
  75. 'btnWidth': 115.0,
  76. 'btnHeight': 35.0,
  77. },
  78. "2": {
  79. "text": "Contact Service Personnel",
  80. "type": "contactServicePersonnel",
  81. 'code': 2,
  82. 'btnColor': '#FF01CA48',
  83. 'btnWidth': 115.0,
  84. 'btnHeight': 35.0,
  85. },
  86. "3": {
  87. "text": "Delete",
  88. "type": "delete",
  89. 'code': 3,
  90. 'btnColor': '#FFFE4066',
  91. 'btnWidth': 98.0,
  92. 'btnHeight': 30.0,
  93. },
  94. "4": {
  95. "text": "Evaluate",
  96. "type": "evaluate",
  97. 'code': 4,
  98. 'btnColor': '#FF4161D0',
  99. 'btnWidth': 98.0,
  100. 'btnHeight': 30.0,
  101. }
  102. };
  103. }