mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-17 09:47:35 +00:00
Merge pull request #156 from cake-tech/CAKE-210-fix-dot-or-comma-on-the-receive-screen
CAKE-210 | added possibility to enter comma in amount field (qr_widge…
This commit is contained in:
commit
29ed9103e8
2 changed files with 3 additions and 3 deletions
|
@ -67,7 +67,7 @@ class QRWidget extends StatelessWidget {
|
||||||
decimal: true),
|
decimal: true),
|
||||||
inputFormatters: [
|
inputFormatters: [
|
||||||
BlacklistingTextInputFormatter(
|
BlacklistingTextInputFormatter(
|
||||||
RegExp('[\\-|\\ |\\,]'))
|
RegExp('[\\-|\\ ]'))
|
||||||
],
|
],
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
hintText: S.of(context).receive_amount,
|
hintText: S.of(context).receive_amount,
|
||||||
|
|
|
@ -31,7 +31,7 @@ class MoneroURI extends PaymentURI {
|
||||||
var base = 'monero:' + address;
|
var base = 'monero:' + address;
|
||||||
|
|
||||||
if (amount?.isNotEmpty ?? false) {
|
if (amount?.isNotEmpty ?? false) {
|
||||||
base += '?tx_amount=$amount';
|
base += '?tx_amount=${amount.replaceAll(',', '.')}';
|
||||||
}
|
}
|
||||||
|
|
||||||
return base;
|
return base;
|
||||||
|
@ -47,7 +47,7 @@ class BitcoinURI extends PaymentURI {
|
||||||
var base = 'bitcoin:' + address;
|
var base = 'bitcoin:' + address;
|
||||||
|
|
||||||
if (amount?.isNotEmpty ?? false) {
|
if (amount?.isNotEmpty ?? false) {
|
||||||
base += '?amount=$amount';
|
base += '?amount=${amount.replaceAll(',', '.')}';
|
||||||
}
|
}
|
||||||
|
|
||||||
return base;
|
return base;
|
||||||
|
|
Loading…
Reference in a new issue