sunmi_barcode_plugin 0.0.3 copy "sunmi_barcode_plugin: ^0.0.3" to clipboard
sunmi_barcode_plugin: ^0.0.3 copied to clipboard

Flutter plugin that wraps Sunmi Android SDK for integrated hardware barcode scanners

sunmi_barcode_plugin #

Flutter plugin that wraps Sunmi Android SDK for integrated hardware barcode scanners. Checked and working with Sunmi L2 device. All methods from SDK are supported.

Getting Started #

Create instance of the plugin

  var sunmiPlugin = SunmiBarcodePlugin();

Then somewhere in your code you can check if device has Sunmi integrated scanner

 bool hasScanner = await sunmiPlugin.isScannerAvailable();

or find out exact scanner model number

int model = await sunmiPlugin.getScannerModel();

To get notified when barcode is scanned simply subscribe to stream

var barcodeSubscription = sunmiPlugin.onBarcodeScanned().listen((event) {
          print(event);
        });

To scan programatically you can use scan and stop methods.

If you don't have Sunmi device or just want to support more devices without implementing each SDK please check flutter_barcode_listener.

6
likes
40
points
23
downloads

Publisher

verified publisherintegrator.hr

Weekly Downloads

Flutter plugin that wraps Sunmi Android SDK for integrated hardware barcode scanners

Repository (GitHub)

License

MIT (license)

Dependencies

flutter

More

Packages that depend on sunmi_barcode_plugin