AmolGangadhare / flutter_barcode_scanner

Barcode scanner plugin for flutter. Supports barcode scanning for Android and iOS
https://pub.dev/packages/flutter_barcode_scanner
MIT License
379 stars 451 forks source link

Scanner takes too long to scan or sometimes fail on some devices in Flutter 3.19 #349

Open muchirajunior opened 5 months ago

muchirajunior commented 5 months ago

Describe the bug When i open the scanning, the camera just scans forever and does not pick QR code

To Reproduce Steps to reproduce the behavior:

  1. Invoke the scanner by calling await FlutterBarcodeScanner.scanBarcode('#ff6666', 'Cancel', true, ScanMode.BARCODE)
  2. Try to scan a QR code

Expected behavior Returns QR code content result

Screenshots In some devices it does not return, just scans forever

Smartphone (please complete the following information):

Additional context Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 3.19.4, on Kali GNU/Linux Rolling 6.5.0-kali3-amd64, locale C.UTF-8) [✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0) [✓] Chrome - develop for the web [✓] Linux toolchain - develop for Linux desktop [✓] Android Studio (version 2023.1) [✓] VS Code (version 1.85.1) [✓] Connected device (3 available) [✓] Network resources

• No issues found!

muchirajunior commented 2 months ago

Any recommendations