From f65a6c5ad4169ad7ef390393da4e6b42a81e6292 Mon Sep 17 00:00:00 2001 From: OleksandrSobol Date: Thu, 4 Feb 2021 18:37:43 +0200 Subject: [PATCH] CAKE-264 | fixed fiat entering bug; added cryptoNumberPattern to send_view_model.dart --- lib/view_model/send/send_view_model.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/view_model/send/send_view_model.dart b/lib/view_model/send/send_view_model.dart index 3afb57c15..581bea1e1 100644 --- a/lib/view_model/send/send_view_model.dart +++ b/lib/view_model/send/send_view_model.dart @@ -36,13 +36,15 @@ import 'package:cake_wallet/generated/i18n.dart'; part 'send_view_model.g.dart'; +const String cryptoNumberPattern = '0.0'; + class SendViewModel = SendViewModelBase with _$SendViewModel; abstract class SendViewModelBase with Store { SendViewModelBase(this._wallet, this._settingsStore, this._sendTemplateStore, this._fiatConversationStore, this.transactionDescriptionBox) : state = InitialExecutionState(), - _cryptoNumberFormat = NumberFormat(), + _cryptoNumberFormat = NumberFormat(cryptoNumberPattern), note = '', sendAll = false { final priority = _settingsStore.priority[_wallet.type];