budget mockup, account settings & transactions filter

This commit is contained in:
2024-02-18 00:08:17 +01:00
parent b2da8436e4
commit 44279796c4
18 changed files with 367 additions and 32 deletions

View File

@@ -4,13 +4,13 @@ class Category {
String label;
String color;
bool essential;
bool saving;
bool transfert;
Category({
this.label = '',
this.color = '',
this.essential = false,
this.saving = false,
this.transfert = false,
});
factory Category.fromJson(Map<String, dynamic> json) {
@@ -18,7 +18,7 @@ class Category {
label: json['label'],
color: json['color'],
essential: bool.parse(json['essential']),
saving: bool.parse(json['saving']),
transfert: bool.parse(json['transfert']),
);
}
@@ -26,7 +26,7 @@ class Category {
'label': label,
'color': color,
'essential': essential.toString(),
'saving': saving.toString(),
'transfert': transfert.toString(),
};
Color rgbToColor() {