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 {
|
try {
|
||||||
final result = await BarcodeScanner.scan();
|
final result = await BarcodeScanner.scan();
|
||||||
isQrScannerShown = false;
|
isQrScannerShown = false;
|
||||||
return result.rawContent;
|
return result.rawContent.trim();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
isQrScannerShown = false;
|
isQrScannerShown = false;
|
||||||
rethrow;
|
rethrow;
|
||||||
|
|
Loading…
Reference in a new issue