[BUG] barcode found, but QRViewController does not get it and does not process it
IGMendoza opened this issue · 0 comments
Bug
Setting up the function:
void _startQRReadingStream(QRViewController controller) {
this.controller = controller;
controller.scannedDataStream.listen((scanData) {
processQRScan(scanData.code!);
});
}
The QR codes are processed most of the time. However, sometimes the function processQRScan(scanData.code!);
is not called every time, yet the console spits out that it has indeed found a barcode every time (see Output below)
Output
D/DecoderThread(26526): Found barcode in 30 ms
D/DecoderThread(26526): Found barcode in 27 ms
D/DecoderThread(26526): Found barcode in 27 ms
D/DecoderThread(26526): Found barcode in 28 ms
D/DecoderThread(26526): Found barcode in 44 ms
D/DecoderThread(26526): Found barcode in 28 ms
D/DecoderThread(26526): Found barcode in 17 ms
Flutter information
[√] Flutter (Channel stable, 3.16.9, on Microsoft Windows [Version 10.0.22631.3447], locale en-AT)
• Flutter version 3.16.9 on channel stable at C:\dev\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 41456452f2 (3 months ago), 2024-01-25 10:06:23 -0800
• Engine revision f40e976bed
• Dart version 3.2.6
• DevTools version 2.28.5
Device
- Pixel 8 Pro
- Android 14 (API 34)