Update Pie Chart In DeviceManagerScreen

This commit is contained in:
anhtunz
2024-12-24 11:16:00 +07:00
parent e047fe1e27
commit 77afc09d19
6 changed files with 297 additions and 29 deletions

View File

@@ -148,8 +148,12 @@ class DeviceUtils {
return Colors.red;
} else if (state == 0) {
return Colors.green;
} else {
} else if (state == 2) {
return Colors.orange;
} else if (state == -1) {
return Colors.grey;
} else {
return Colors.black87;
}
}