New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not close the scanning activity after every scan. #18
Comments
Thanks for using the plugin. |
@AmolGangadhare Why not just handle the scanning through a dart camera widget of some sort, that way all the camera view can be added directly in the dart code? |
hi, the plugin has been updated with continuous scan support. Please try it out and provide your feedback. Thanks |
I've tried continuous scan on Android. It opens the viewer but never finds any barcode. I've tried it on a OnePlus 5T phone |
@afornes thanks for using the plugin. It scans continuously whenever a barcode is detected. Is there any error logs? |
@AmolGangadhare There are no errors. I've set breakpoints and also prints inside the "listen" callback and they are never triggered |
sounds weird, give me some time to figure it out. One more thing, is that specific to a QR code or barcode? can you provide a sample you are referring(if possible)? |
I'm trying to scan an EAN13 barcode. This is the code I'm trying to scan: 8434506077280 I've tried using other libraries and it works fine |
@afornes thanks for details, I'm looking into it and will update you shortly on this. |
@afornes it was a threading issue in the plugin bridge. unfortunately, I missed this. I've made a fix to this. Will test it thoroughly, and upload the latest version to the pub shortly. Thanks for helping to improve this plugin. |
plugin 0.1.3 is uploaded with issue fix. |
Hi. |
can someone point me in the right direction? I need to know how to use the continuous scan. |
Sorry for the late reply. Showing an alert dialog in |
@irperera var barcode = await _searchByBarcode();
while (barcode.isNotEmpty) {
barcode = await _searchByBarcode();
}); Future<String> _searchByBarcode() async {
String barcodeScanRes;
try {
barcodeScanRes = await FlutterBarcodeScanner.scanBarcode("#ff6666", "Anuluj", true);
} on PlatformException {
barcodeScanRes = 'Failed to get platform version.';
}
return barcodeScanRes;
} |
For continuous scan, there is a method
|
@AmolGangadhare |
Ok. |
@troncomputers
how can I prompt the user that they are actually scanning. |
@irperera |
thanks, I need continuous scanning, can you show me how to do that. thanks again. |
I did show you and you gave me "thumbs up" 🤔 |
thanks I'll try it |
@troncomputers |
@irperera |
This feature has been included in the plugin so closing this. |
Hello I’m using your plugin and it works very well but there is one thing missing that’s is the auto closing it mean what if I want to wait for the result maybe for 10 sec and if it’s not found then I want to close the scanner but I’m unable to close it without pressing cancel button so can you fix that |
Is your feature request related to a problem? Please describe.
My customers need a way to scan products quickly, thus meaning that they need the activity to stay open after a scan has happened so that they can scan the next item.
Describe the solution you'd like
Give an optional parameter for closing the scan activity after every scan.
Describe alternatives you've considered
None that I can think of.
Additional context
None.
The text was updated successfully, but these errors were encountered: