qrcode_barcode_scanner
Plugin for managing QR and BAR code reading from an external device.
Important
THIS PACKAGE WILL WORK ONLY IN ANDROID!
Class Name
QrcodeBarcodeScanner
Variables
ScannedCallback onScannedCallback; //void Function(String scannedCode);
Example
String? _scanValue;
@override
void initState() {
super.initState();
QrcodeBarcodeScanner(
onScannedCallback: (String value) => setState(
() {
_scanValue = value;
},
),
);
}
Installation
flutter pub add qrcode_barcode_scanner
Tested Devices
- Sunmi Blink