Listen barcode input from the keyboard device interface

  Barcode, Flutter App

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

Download source code on GitHub

https://github.com/FrenkyDema/flutter_barcode_keyboard_listener