CAKE-29 | applied new design to node list, node create or edit, contact list and contact pages

This commit is contained in:
Oleksandr Sobol
2020-08-31 19:44:48 +03:00
parent 81cdf0d878
commit c3dc2be8d4
10 changed files with 200 additions and 268 deletions
@@ -16,7 +16,7 @@ abstract class ContactViewModelBase with Store {
_contact = contact {
name = _contact?.name;
address = _contact?.address;
currency = _contact?.type ?? _wallet.currency;
currency = _contact?.type; //_wallet.currency;
}
@observable
@@ -33,7 +33,8 @@ abstract class ContactViewModelBase with Store {
@computed
bool get isReady =>
(name?.isNotEmpty ?? false) && (address?.isNotEmpty ?? false);
(name?.isNotEmpty ?? false) && (currency?.toString()?.isNotEmpty ?? false)
&& (address?.isNotEmpty ?? false);
final List<CryptoCurrency> currencies;
final ContactService _contactService;
@@ -44,7 +45,8 @@ abstract class ContactViewModelBase with Store {
void reset() {
address = '';
name = '';
currency = _wallet.currency;
//currency = _wallet.currency;
currency = null;
}
Future save() async {