CW-260 show amount received for each account (#907)
* Show amount received for each account * Enable litcoin send all * disable litcoin send all * Indent code * Fix large font resolution for account titlewow-support
parent
25b743df47
commit
9714961298
@ -1,10 +1,12 @@
|
||||
class Account {
|
||||
Account({required this.id, required this.label});
|
||||
Account({required this.id, required this.label, this.balance});
|
||||
|
||||
Account.fromMap(Map<String, Object> map)
|
||||
: this.id = map['id'] == null ? 0 : int.parse(map['id'] as String),
|
||||
this.label = (map['label'] ?? '') as String;
|
||||
this.label = (map['label'] ?? '') as String,
|
||||
this.balance = (map['balance'] ?? '0.00') as String;
|
||||
|
||||
final int id;
|
||||
final String label;
|
||||
final String? balance;
|
||||
}
|
@ -1,10 +1,9 @@
|
||||
import 'package:flutter/foundation.dart';
|
||||
|
||||
class AccountListItem {
|
||||
AccountListItem(
|
||||
{required this.label, required this.id, this.isSelected = false});
|
||||
{required this.label, required this.id, this.balance, this.isSelected = false});
|
||||
|
||||
final String label;
|
||||
final int id;
|
||||
final bool isSelected;
|
||||
final String? balance;
|
||||
}
|
||||
|
Loading…
Reference in new issue