mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-22 19:49:22 +00:00
Merge pull request #80 from cake-tech/CAKE-264-fiat-entering-bug
CAKE-264 | fixed fiat entering bug; added cryptoNumberPattern to send…
This commit is contained in:
commit
24f2de6648
1 changed files with 3 additions and 1 deletions
|
@ -36,13 +36,15 @@ import 'package:cake_wallet/generated/i18n.dart';
|
||||||
|
|
||||||
part 'send_view_model.g.dart';
|
part 'send_view_model.g.dart';
|
||||||
|
|
||||||
|
const String cryptoNumberPattern = '0.0';
|
||||||
|
|
||||||
class SendViewModel = SendViewModelBase with _$SendViewModel;
|
class SendViewModel = SendViewModelBase with _$SendViewModel;
|
||||||
|
|
||||||
abstract class SendViewModelBase with Store {
|
abstract class SendViewModelBase with Store {
|
||||||
SendViewModelBase(this._wallet, this._settingsStore, this._sendTemplateStore,
|
SendViewModelBase(this._wallet, this._settingsStore, this._sendTemplateStore,
|
||||||
this._fiatConversationStore, this.transactionDescriptionBox)
|
this._fiatConversationStore, this.transactionDescriptionBox)
|
||||||
: state = InitialExecutionState(),
|
: state = InitialExecutionState(),
|
||||||
_cryptoNumberFormat = NumberFormat(),
|
_cryptoNumberFormat = NumberFormat(cryptoNumberPattern),
|
||||||
note = '',
|
note = '',
|
||||||
sendAll = false {
|
sendAll = false {
|
||||||
final priority = _settingsStore.priority[_wallet.type];
|
final priority = _settingsStore.priority[_wallet.type];
|
||||||
|
|
Loading…
Reference in a new issue