mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 07:07:19 +00:00
merge dev to devices view
This commit is contained in:
@ -26,7 +26,7 @@ abstract class ColorsManager {
|
||||
static const Color blackColor = Color(0xFF000000);
|
||||
static const Color lightGreen = Color(0xFF00FF0A);
|
||||
static const Color grayColor = Color(0xFF999999);
|
||||
static const Color red = Colors.red;
|
||||
static const Color red = Color(0xFFFF0000);
|
||||
static const Color graysColor = Color(0xffEBEBEB);
|
||||
static const Color textGray = Color(0xffD5D5D5);
|
||||
static const Color btnColor = Color(0xFF00008B);
|
||||
|
@ -25,4 +25,6 @@ class Assets {
|
||||
static const String assetIcon = "assets/images/asset_icon.svg";
|
||||
static const String calendarIcon = "assets/images/calendar_icon.svg";
|
||||
static const String deviceNoteIcon = "assets/images/device_note.svg";
|
||||
static const String timeIcon = "assets/images/time_icon.svg";
|
||||
static const String emptyTable = "assets/images/empty_table.svg";
|
||||
}
|
||||
|
@ -1,6 +1,4 @@
|
||||
|
||||
|
||||
|
||||
enum AccessType {
|
||||
onlineOnetime,
|
||||
onlineMultiple,
|
||||
@ -43,8 +41,6 @@ extension AccessTypeExtension on AccessType {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
enum DeviseStatus {
|
||||
online,
|
||||
offline,
|
||||
@ -74,6 +70,40 @@ extension OnlineTypeExtension on DeviseStatus {
|
||||
}
|
||||
|
||||
|
||||
enum AccessStatus {
|
||||
expired ,
|
||||
effective ,
|
||||
toBeEffective,
|
||||
}
|
||||
|
||||
extension AccessStatusExtension on AccessStatus {
|
||||
String get value {
|
||||
switch (this) {
|
||||
case AccessStatus.expired:
|
||||
return "Expired";
|
||||
case AccessStatus.effective:
|
||||
return "Effective" ;
|
||||
case AccessStatus.toBeEffective:
|
||||
return "To be effective";
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
static AccessStatus fromString(String value) {
|
||||
switch (value) {
|
||||
case "EXPIRED" :
|
||||
return AccessStatus.expired;
|
||||
case "EFFECTIVE" :
|
||||
return AccessStatus.effective;
|
||||
case "TO_BE_EFFECTIVE":
|
||||
return AccessStatus.toBeEffective;
|
||||
default:
|
||||
throw ArgumentError("Invalid access type: $value");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user