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 453 forks source link

single digit barcodes not working (Android) #253

Open alexcgrd opened 2 years ago

alexcgrd commented 2 years ago

Describe the bug Single digit barcodes are hard to read and return the wrong value. Any other barcodes work fine.

To Reproduce Steps to reproduce the behavior:

  1. Download the example
  2. Scan a single digit barcode (barcode generator: https://barcode.tec-it.com/en/?data=3 )

Expected behavior It should return the correct single digit barcode result

Screenshots barcode

Smartphone:

tksoh commented 2 years ago

I just ran into this issue with plugin v2.0.0. However, in my case, the problem happens on Code 128 format. Not issue with Code 93 format. Unfortunately, we have committed to Code 128, so I really hope to see a fix.

Saw the issue with Android 11 and 9.

TIA