flutter_barcode_keyboard_listener

Plugin for managing QR and BAR code reading from an external device.

Important

THIS PACKAGE WILL WORK ONLY IN ANDROID!


Class Name

BarcodeListener

Variables

BarcodeScannedCallback onBarcodeScannedCallback //<- Function(String barcode)
Duration bufferDuration
bool useKeyDownEvent

Example

@override
void initState() {
    BarcodeListener(
        onBarcodeScannedCallback:
            (String value) => setState(() {
                print(value);
            },
        ),
    );
}

Installation

flutter pub add flutter_barcode_keyboard_listener

Tested Devices

Sunmi Blink

GitHub

View Github