Skip to content

Commit

Permalink
Correct the payment request info dialog alignment
Browse files Browse the repository at this point in the history
This is a temporary fix before we find the root cause of Bad 0-amount invoice UI #547
  • Loading branch information
erdemyerebasmaz committed Jul 5, 2023
1 parent 8c5fb82 commit dcd2b06
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions lib/widgets/payment_dialogs/payment_request_info_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class PaymentRequestInfoDialogState extends State<PaymentRequestInfoDialog> {
key: _dialogKey,
width: MediaQuery.of(context).size.width,
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.spaceAround,
mainAxisSize: MainAxisSize.min,
children: paymentRequestDialog,
),
Expand Down Expand Up @@ -107,14 +107,9 @@ class PaymentRequestInfoDialogState extends State<PaymentRequestInfoDialog> {
_addIfNotNull(children, _buildErrorMessage(context, currencyState));
_addIfNotNull(children, _buildActions(context, currencyState, account));

return Container(
padding: const EdgeInsets.fromLTRB(8.0, 0.0, 8.0, 16.0),
width: MediaQuery.of(context).size.width,
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
mainAxisSize: MainAxisSize.min,
children: children,
),
return Padding(
padding: const EdgeInsets.symmetric(horizontal: 8),
child: Column(children: children),
);
},
);
Expand Down

0 comments on commit dcd2b06

Please sign in to comment.