shaxxx / flutter_barcode_listener

Flutter widget to listen for scanned barcode via hardware scanners
MIT License
45 stars 46 forks source link

Windows Desktop can not get full code #21

Closed cwangfr closed 1 year ago

cwangfr commented 2 years ago

I have a strange problem, in some Windows systems, the complete barcode cannot always be scanned, and the results in release mode and debug mode are different. My code is this BarcodeKeyboardListener( bufferDuration: const Duration(milliseconds: 500), useKeyDownEvent: true, onBarcodeScanned: (barcode) { debugPrint(barcode); if (barcode.length == 12) { barcode = "0" + barcode; } controller.barcode(barcode: barcode); }, child: barcodeList(), ) i have 3 barcode

0755441231925 20147426 3700408421526

in debug mode result

WeChat9588b95f99896733e733ee965ec24f9c

in release mode result

WeChatd242b9c51a207f4067cfda561db339ca
utpalruparel commented 2 years ago

Hello.. have you found any solution for this?

utpalruparel commented 2 years ago

Any solution here pls?

deanbot commented 2 years ago

Note, if you are able to configure scanning inter character delay this workaround is working for me https://github.com/flutter/flutter/issues/79849#issuecomment-1007147194

shaxxx commented 1 year ago

Closing this since it's issue with Flutter, not this plugin.