-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Address Send Payment UI feedback (#252)
* Add a placeholder image on LNURL payments * Disable "Next" & "Send" buttons if there are errors * Add a placeholder image on LN payments Remove center alignment to be consistent with LNURL payment confirmation page UI. * Add currency display name on error messages. * fix: Make SingleButtonBottomBar's enabled by default * Display Currency Converter on a bottom sheet - Remove Currency Converter Dialog - Align Currency Converter icon to amount text - Allow users to exclude currency symbol from formatted fiat value. - Allow users to include display name to formatted fiat value. * Apply font size, padding & layout changes on LNURL payment UI - Allow editing label & error text style of AmountFormField - Allow formatFiat options on format - Move LnUrlPaymentLimits below error message - Add bottom padding to LnUrlPaymentLimits - Remove bottom padding from LnPaymentDescription - Reduce LNURLMetadataText max height to 120 * Apply font size, padding & layout changes on Receive payment UIs - Display ScrollableErrorMessageWidget if there are any errors creating invoices - Allow customizing contentPadding, titleStyle & errorTextStyle of ScrollableErrorMessageWidget. - Make the error message scrollable. - Fix how LnurlWithdrawDialog looks on light theme - Make amount + description labels white * Make fiat currency chips scrollable * Update CurrencyConverterBottomSheet * Do not disable currency converter button, pop the sheet instead * Address UI Feedback
- Loading branch information
1 parent
7ab710e
commit b66498c
Showing
50 changed files
with
2,055 additions
and
1,201 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import 'dart:convert'; | ||
import 'dart:typed_data'; | ||
|
||
import 'package:flutter/material.dart'; | ||
|
||
class LNURLMetadataImage extends StatelessWidget { | ||
final String? base64String; | ||
|
||
const LNURLMetadataImage({ | ||
super.key, | ||
this.base64String, | ||
}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
const double imageSize = 128.0; | ||
|
||
final Uint8List? imageBytes = base64String?.isNotEmpty == true ? base64Decode(base64String!) : null; | ||
|
||
return ConstrainedBox( | ||
constraints: const BoxConstraints( | ||
minHeight: imageSize, | ||
minWidth: imageSize, | ||
maxHeight: imageSize, | ||
maxWidth: imageSize, | ||
), | ||
child: imageBytes != null && imageBytes.isNotEmpty | ||
? Image.memory( | ||
imageBytes, | ||
width: imageSize, | ||
fit: BoxFit.cover, | ||
) | ||
: Image.asset( | ||
'assets/icons/app_icon.png', | ||
width: imageSize, | ||
fit: BoxFit.cover, | ||
), | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
export 'lnurl_metadata.dart'; | ||
export 'lnurl_metadata_image.dart'; | ||
export 'lnurl_metadata_text.dart'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.