mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
Trim the content scanned via QR to remove extra spaces/new lines
This commit is contained in:
@@ -7,7 +7,7 @@ Future<String> presentQRScanner() async {
|
||||
try {
|
||||
final result = await BarcodeScanner.scan();
|
||||
isQrScannerShown = false;
|
||||
return result.rawContent;
|
||||
return result.rawContent.trim();
|
||||
} catch (e) {
|
||||
isQrScannerShown = false;
|
||||
rethrow;
|
||||
|
||||
Reference in New Issue
Block a user