helpers/nsg_barcode_reader library

Classes

NsgBarcodeListener
Class to Listen for PHYSICAL keyboard keys pressed in short amount of time ending in newline making it easy to implement most of the barcode reader devices This widget will listen for raw PHYSICAL keyboard events even when other controls have primary focus. It will buffer all characters coming in specifed bufferDuration time frame that end with line feed character and call callback function with result. Keep in mind this widget will listen for events even when not visible. Windows seems to be using the RawKeyDownEvent instead of the RawKeyUpEvent, this behaviour can be managed by setting useKeyDownEvent.
NsgBarcodeListenerState

Constants

aSecond → const Duration
hundredMs → const Duration
lineFeed → const String

Typedefs

BarcodeScannedCallback = void Function(String barcode)