Skip to content

Commit

Permalink
UI tweaks of Payment URI
Browse files Browse the repository at this point in the history
  • Loading branch information
hhanh00 committed Sep 25, 2021
1 parent 1b669f1 commit c1680e1
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 13 deletions.
7 changes: 5 additions & 2 deletions lib/account.dart
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion lib/generated/intl/messages_en.dart
Expand Up @@ -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..."),
Expand Down
4 changes: 2 additions & 2 deletions lib/generated/l10n.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/l10n/intl_en.arb
Expand Up @@ -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"
}
11 changes: 6 additions & 5 deletions lib/payment_uri.dart
Expand Up @@ -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(
key: _formKey,
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)),
Expand All @@ -62,7 +63,7 @@ class PaymentURIState extends State<PaymentURIPage> {
onPressed: _ok,
),
]),
])));
]))));
}

String? _checkAmount(String? vs) {
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml.tpl
Expand Up @@ -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"
Expand Down

0 comments on commit c1680e1

Please sign in to comment.