CAKE-20 | updated exchange and exchange template pages; created exchange_view_model and applied to exchange and exchange template pages; applied new design to menu widget; changed text validator and amount validator

This commit is contained in:
Oleksandr Sobol 2020-07-31 18:29:21 +03:00
parent fe9deecd03
commit 33209c3cd6
56 changed files with 856 additions and 524 deletions

View file

@ -3,10 +3,11 @@ import 'package:cake_wallet/generated/i18n.dart';
import 'package:cake_wallet/src/domain/common/wallet_type.dart';
class AmountValidator extends TextValidator {
AmountValidator({WalletType type})
AmountValidator({WalletType type, bool isAutovalidate = false})
: super(
errorMessage: S.current.error_text_amount,
pattern: _pattern(type),
isAutovalidate: isAutovalidate,
minLength: 0,
maxLength: 0);