mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-23 03:59:23 +00:00
Trim the content scanned via QR to remove extra spaces/new lines
This commit is contained in:
parent
d8ba269e94
commit
43dc729db4
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue