Added theme, reworked UI

This commit is contained in:
2024-02-14 23:41:50 +01:00
parent a51ca14041
commit 1a7f28703a
23 changed files with 356 additions and 163 deletions

View File

@@ -3,22 +3,30 @@ import 'dart:ui';
class Category {
String label;
String color;
bool essential;
bool saving;
Category({
this.label = '',
this.color = '',
this.essential = false,
this.saving = false,
});
factory Category.fromJson(Map<String, dynamic> json) {
return Category(
label: json['label'],
color: json['color']
color: json['color'],
essential: bool.parse(json['essential']),
saving: bool.parse(json['saving']),
);
}
Map<String, String> toJson() => {
'label': label,
'color': color,
'essential': essential.toString(),
'saving': saving.toString(),
};
Color rgbToColor() {