Improved category with colors

This commit is contained in:
gltron committed 2024-02-09 01:22:04 +01:00
1 parent c5ede79dc4
commit 44f6d433d1
14 files changed
+303 -170

No files matched your search

@@ -1,3 +1,5 @@
import 'dart:ui';
class Category {
String label;
String color;
@@ -18,4 +20,8 @@ class Category {
'label': label,
'color': color,
};
Color rgbToColor() {
return Color(int.parse(color.toUpperCase().replaceAll("#", ""), radix: 16));
}
}