UI tweaks of Payment URI
This commit is contained in:
parent
1b669f1b6d
commit
c1680e1e64
|
@ -389,8 +389,11 @@ class _AccountPageState extends State<AccountPage>
|
|||
}
|
||||
|
||||
_onReceive() async {
|
||||
await showDialog(context: context, builder: (context) =>
|
||||
AlertDialog(title: Text(S.of(context).receivePayment), content: PaymentURIPage(_address())));
|
||||
await showDialog(context: context,
|
||||
barrierColor: Colors.black,
|
||||
barrierDismissible: false,
|
||||
builder: (context) =>
|
||||
Dialog(child: PaymentURIPage(_address())));
|
||||
}
|
||||
|
||||
_unconfirmedStyle() {
|
||||
|
|
|
@ -179,7 +179,7 @@ class MessageLookup extends MessageLookupByLibrary {
|
|||
"qty": MessageLookupByLibrary.simpleMessage("Qty"),
|
||||
"realized": MessageLookupByLibrary.simpleMessage("Realized"),
|
||||
"receivePayment":
|
||||
MessageLookupByLibrary.simpleMessage("Receive a payment"),
|
||||
MessageLookupByLibrary.simpleMessage("Receive Payment"),
|
||||
"rescan": MessageLookupByLibrary.simpleMessage("Rescan"),
|
||||
"rescanRequested":
|
||||
MessageLookupByLibrary.simpleMessage("Rescan Requested..."),
|
||||
|
|
|
@ -1432,10 +1432,10 @@ class S {
|
|||
);
|
||||
}
|
||||
|
||||
/// `Receive a payment`
|
||||
/// `Receive Payment`
|
||||
String get receivePayment {
|
||||
return Intl.message(
|
||||
'Receive a payment',
|
||||
'Receive Payment',
|
||||
name: 'receivePayment',
|
||||
desc: '',
|
||||
args: [],
|
||||
|
|
|
@ -137,6 +137,6 @@
|
|||
"purple": "Purple",
|
||||
"noRecipient": "No Recipient",
|
||||
"addARecipientAndItWillShowHere": "Add a recipient and it will show here",
|
||||
"receivePayment": "Receive a payment",
|
||||
"receivePayment": "Receive Payment",
|
||||
"amountTooHigh": "Amount too high"
|
||||
}
|
||||
|
|
|
@ -31,12 +31,13 @@ class PaymentURIState extends State<PaymentURIPage> {
|
|||
Widget build(BuildContext context) {
|
||||
final qrSize = getScreenSize(context) / 1.5;
|
||||
|
||||
return Container(
|
||||
width: double.maxFinite,
|
||||
child: Form(
|
||||
return Form(
|
||||
key: _formKey,
|
||||
child: SingleChildScrollView(child: Padding(padding: EdgeInsets.all(8),
|
||||
child:
|
||||
Column(mainAxisAlignment: MainAxisAlignment.center, children: [
|
||||
Text(S.of(context).receivePayment, style: Theme.of(context).textTheme.headline5),
|
||||
Padding(padding: EdgeInsets.all(8)),
|
||||
QrImage(
|
||||
data: qrText, size: qrSize, backgroundColor: Colors.white),
|
||||
Padding(padding: EdgeInsets.all(8)),
|
||||
|
@ -62,7 +63,7 @@ class PaymentURIState extends State<PaymentURIPage> {
|
|||
onPressed: _ok,
|
||||
),
|
||||
]),
|
||||
])));
|
||||
]))));
|
||||
}
|
||||
|
||||
String? _checkAmount(String? vs) {
|
||||
|
|
|
@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
|
|||
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
|
||||
# Read more about iOS versioning at
|
||||
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
||||
version: 1.0.10+150
|
||||
version: 1.0.10+151
|
||||
|
||||
environment:
|
||||
sdk: ">=2.12.0 <3.0.0"
|
||||
|
|
|
@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
|
|||
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
|
||||
# Read more about iOS versioning at
|
||||
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
||||
version: 1.0.10+150
|
||||
version: 1.0.10+151
|
||||
|
||||
environment:
|
||||
sdk: ">=2.12.0 <3.0.0"
|
||||
|
|
Loading…
Reference in New Issue