Trim the content scanned via QR to remove extra spaces/new lines

This commit is contained in:
OmarHatem 2023-01-10 19:52:53 +02:00
parent d8ba269e94
commit 43dc729db4

View file

@ -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;