You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.1KB

  1. class ConstCommon {
  2. static int kExpiredTime = 518400000; //6* 24 * 60 * 60 * 1000; 6days
  3. static int kFileSize = 1000000; //1M = 1000.000 bytes
  4. static int kMaxAgeCache = 7; // 7days
  5. static const String baseUrl = "https://tpf.aztrace.vn";
  6. static const String baseImageUrl = "https://tpf.aztrace.vn/upload/";
  7. static RegExp regExpDecimal = RegExp("[0-9.]");
  8. static const String supplyTypeSeed = "GIONG";
  9. static const String supplyTypeDung = "PHANBON";
  10. static const String supplyTypeSubStrate = "GIATHE";
  11. static const String supplyTypeProtectPlant = "THUOCBVTV";
  12. static const String supplyTypeAll = "ALL";
  13. //Environment Update
  14. static const String apiDetailEnvUpdate = "api/activity-environment-update";
  15. static const String paramsActionEnvUpdate = "activityEnv";
  16. static const String apiUpdateEnvUpdate = "api/updateEnv";
  17. static const String apiAddEnvUpdate = "api/createEnv";
  18. }
  19. enum CRUDStatus { unknown, add, edit, delete }
  20. enum LocationType { country, province, district, ward }
  21. enum StampStatus {
  22. NEW,
  23. ACTIVE,
  24. CANCELED,
  25. EXPIRED,
  26. }
  27. enum SortType {
  28. asc,
  29. desc,
  30. }
  31. enum TaskStatus {
  32. completed,
  33. no_completed,
  34. }