v5.1.0 Release Candidate (#2332)

* v5.1.0 Release Candidate

* update app versions [skip ci]

* separate secrets for Monero.com [skip ci]

* fix: amount getting wiped when pasting address

* update Trocador Monero api key [skip ci]

* move fiat api key to headers [skip ci]

* latest Release candidate
This commit is contained in:
Omar Hatem
2025-06-27 22:20:18 +03:00
committed by GitHub
parent 5aeb6b7522
commit c2cca1ff37
20 changed files with 95 additions and 70 deletions
+11 -5
View File
@@ -263,11 +263,17 @@ class AddressTextField<T extends Currency> extends StatelessWidget {
final address = clipboard?.text ?? '';
if (address.isNotEmpty) {
try {
final uri = Uri.parse(address);
controller?.text = uri.path;
onURIScanned?.call(uri);
} catch (_) {
// if it has query parameters then it's a valid uri
// added because Uri.parse(address) can parse a normal address string and would still be valid
if (address.contains("=")) {
try {
final uri = Uri.parse(address);
controller?.text = uri.path;
onURIScanned?.call(uri);
} catch (_) {
controller?.text = address;
}
} else {
controller?.text = address;
}
}