artemis_hardware_barcode_scanner_plugin 0.0.1 copy "artemis_hardware_barcode_scanner_plugin: ^0.0.1" to clipboard
artemis_hardware_barcode_scanner_plugin: ^0.0.1 copied to clipboard

A new Flutter plugin for scanning barcode with hardware enable barcodes

Android Hardware Barcode Scanner #

A Flutter plugin for Android hardware barcode scanner devices (PDA / rugged devices).
It listens to native scan events and streams scanned barcode values into Flutter.

This plugin is intended for built-in hardware scanners, not camera-based scanning.


Features #

  • Android hardware barcode scanner support
  • Event-based scanning using Dart Streams
  • Fast and lightweight
  • No camera dependency
  • Simple and clean Flutter API

Supported Devices #

This plugin works on Android devices with native barcode scanning hardware, such as:

  • Industrial PDAs
  • Rugged handheld terminals
  • OEM devices that broadcast barcode scan intents

Camera-based barcode scanning is not supported.


Platform Support #

Platform Supported
Android โœ… Yes
iOS โŒ No
Web โŒ No

Installation #

Add the plugin to your pubspec.yaml:

dependencies:
  artemis_hardware_barcode_scanner: ^1.0.0

Example #

class BarcodePage extends StatefulWidget {
  const BarcodePage({super.key});

  @override
  State<BarcodePage> createState() => _BarcodePageState();
}

class _BarcodePageState extends State<BarcodePage> {
  String? _barcode;

  @override
  void initState() {
    super.initState();

    ArtemisHardwareBarcodeScannerPlugin.onBarcodeScanned.listen((barcode) {
      setState(() {
        _barcode = barcode;
      });
    });
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: const Text('Barcode Scanner')),
      body: Center(
        child: Text(_barcode ?? 'Scan a barcode'),
      ),
    );
  }
}

๐Ÿ” Permissions #

None required! This plugin works without runtime permission prompts.


๐Ÿ“„ License #

MIT


๐Ÿ’ก Contributions #

Pull requests, bug reports, and feedback are welcome!


๐Ÿ“ฃ Author #

Developed by ABOMIS ยท โœ‰๏ธ [mike.backshaw@abomis.com]

0
likes
130
points
--
downloads

Publisher

unverified uploader

A new Flutter plugin for scanning barcode with hardware enable barcodes

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_web_plugins, plugin_platform_interface, web

More

Packages that depend on artemis_hardware_barcode_scanner_plugin

Packages that implement artemis_hardware_barcode_scanner_plugin