AmolGangadhare / flutter_barcode_scanner

Barcode scanner plugin for flutter. Supports barcode scanning for Android and iOS

Home Page:https://pub.dev/packages/flutter_barcode_scanner

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

muchirajunior opened this issue · comments

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):

  • Device: Samasung A series,
  • OS: Android 13
  • Browser [e.g. stock browser, safari]
  • Version 13

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!