editable label & color
This commit is contained in:
@@ -4,11 +4,13 @@ class Account {
|
||||
String label;
|
||||
String color;
|
||||
bool saving;
|
||||
double interest;
|
||||
|
||||
Account({
|
||||
this.label = '',
|
||||
this.color = '',
|
||||
this.saving = false,
|
||||
this.interest = 0.0,
|
||||
});
|
||||
|
||||
factory Account.fromJson(Map<String, dynamic> json) {
|
||||
@@ -16,6 +18,7 @@ class Account {
|
||||
label: json['label'],
|
||||
color: json['color'],
|
||||
saving: bool.parse(json['saving']),
|
||||
interest: double.parse(json['intereset']),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -23,6 +26,7 @@ class Account {
|
||||
'label': label,
|
||||
'color': color,
|
||||
'saving': saving.toString(),
|
||||
'intereset': interest.toString(),
|
||||
};
|
||||
|
||||
Color rgbToColor() {
|
||||
|
||||
Reference in New Issue
Block a user