From c6e90741b7b43911fe27363e034901377c7a0b59 Mon Sep 17 00:00:00 2001 From: Charon-Fan Date: Thu, 12 Dec 2024 10:03:41 +0800 Subject: [PATCH] Revert "feat: rawValue toLowerCase" This reverts commit 10b088021c74ecedba3c96823a92b0a5a76db34a. --- lib/entities/qr_scanner.dart | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/entities/qr_scanner.dart b/lib/entities/qr_scanner.dart index 406b6335b..2e2637566 100644 --- a/lib/entities/qr_scanner.dart +++ b/lib/entities/qr_scanner.dart @@ -68,12 +68,11 @@ class _BarcodeScannerSimpleState extends State { void _handleBarcodeInternal(BarcodeCapture barcodes) { for (final barcode in barcodes.barcodes) { // don't handle unknown QR codes - var rawValue = barcode.rawValue?.toLowerCase(); - if (rawValue?.trim().isEmpty??false == false) continue; - if (rawValue!.startsWith("ur:")) { - if (urCodes.contains(rawValue)) continue; + if (barcode.rawValue?.trim().isEmpty??false == false) continue; + if (barcode.rawValue!.startsWith("ur:")) { + if (urCodes.contains(barcode.rawValue)) continue; setState(() { - urCodes.add(rawValue!); + urCodes.add(barcode.rawValue!); ur = URQRToURQRData(urCodes); }); if (ur.progress == 1) {