From 43dc729db4b6b9edc5cfcb4be3b8107ac324c698 Mon Sep 17 00:00:00 2001 From: OmarHatem Date: Tue, 10 Jan 2023 19:52:53 +0200 Subject: [PATCH] Trim the content scanned via QR to remove extra spaces/new lines --- lib/entities/qr_scanner.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/entities/qr_scanner.dart b/lib/entities/qr_scanner.dart index 8c23f6ea1..c6873a5bc 100644 --- a/lib/entities/qr_scanner.dart +++ b/lib/entities/qr_scanner.dart @@ -7,7 +7,7 @@ Future presentQRScanner() async { try { final result = await BarcodeScanner.scan(); isQrScannerShown = false; - return result.rawContent; + return result.rawContent.trim(); } catch (e) { isQrScannerShown = false; rethrow;