flutter_barcode_scanner
flutter_barcode_scanner copied to clipboard
[QUESTION] Dialog using Stream
Hello, I would like to know if there is any way I can show a Dialog on top of the camera looking for the barcode, since if I use stream (getBarcodeStreamReceiver) the lector remains open and I can't notifiy the user that the code has been readed. Thank you.
@marianoarga
Thanks for the enhancement query.
As of now, there is no provision of showing an alert dialog. I got a related query earlier, it is a good idea to show alert dialog while scanning. I'm taking this enhancement into consideration.
Thanks
Dialog is good, but any widget is better. I expected that this library functions like a normal widget that I can put anywhere and put anything near and above the scanning camera. It would be great to have this scenario supported, because the continuous mode is useless when the qr reader is always full screen. I need a reader to be another input method for a text field and displayed in place of keyboard not overlapping the app's interface
As the scanning is done in the native part, so widgets can not be used there. The dialog will be in the native form for Android and iOS. Apart from this if there anything that can be used, that can be explored further.
Hi @AmolGangadhare, there is this other plugin with an MIT license where they made so that the camera can be used inside your pages as a widget with the Texture widget. Here for you to take a look https://pub.dev/packages/fast_qr_reader_view If you want to test it, you will need a QRReaderController initialized, then you use startScanning. For you to show the camera you use QRReaderPreview, which just uses a Texture widget. I would love for your plugin to have something like this since you already have null safety. @Himrula2la, with this plugin, you could do what you wanted