CAKE-264 | fixed fiat entering bug; added cryptoNumberPattern to send_view_model.dart
OleksandrSobol committed
Feb 4, 2021 at 18:37 UTC
f65a6c5ad4169ad7ef390393da4e6b42a81e6292
1 file changed
+3
-1
lib/view_model/send/send_view_model.dart
+3
-1
@@ -36,13 +36,15 @@ import 'package:cake_wallet/generated/i18n.dart';
36
37
part 'send_view_model.g.dart';
38
39
+const String cryptoNumberPattern = '0.0';
40
+
41
class SendViewModel = SendViewModelBase with _$SendViewModel;
42
43
abstract class SendViewModelBase with Store {
44
SendViewModelBase(this._wallet, this._settingsStore, this._sendTemplateStore,
45
this._fiatConversationStore, this.transactionDescriptionBox)
46
: state = InitialExecutionState(),
45
- _cryptoNumberFormat = NumberFormat(),
47
+ _cryptoNumberFormat = NumberFormat(cryptoNumberPattern),
48
note = '',
49
sendAll = false {
50
final priority = _settingsStore.priority[_wallet.type];