Improved category with colors

This commit is contained in:
2024-02-09 01:22:04 +01:00
parent c5ede79dc4
commit 44f6d433d1
14 changed files with 303 additions and 170 deletions

View File

@@ -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));
}
}