flutter_barcode_keyboard_listener 0.0.2

SDKflutter
Platformandroid

Demonstrates how to use the flutter_barcode_keyboard_listener plugin.

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