Pakete, Repositories und App-Kategorien suchen

Paketdetailsv3.2.0

flutter_datawedge

Ein Flutter-Paket zur Kommunikation mit Zebra DataWedge-Scannern über die DataWedge-Intent-API

Android
30-Tage-Downloads
7670
Likes
41
Pub-Punkte
160

Paket installieren

flutter pub add flutter_datawedge

Paketübersicht

Aus öffentlichen Paketdaten erstellte Orientierung.

Ein Flutter-Paket, das die Kommunikation mit Zebra DataWedge-Scannern auf Android-Geräten über die DataWedge-Intent-API ermöglicht. Es ermöglicht Entwicklern, Scanner-Einstellungen zu konfigurieren, Scan-Daten zu empfangen und Eingabesquellen direkt innerhalb von Flutter-Anwendungen zu verwalten. Das Paket ist für eine nahtlose Integration mit Zebra-Mobilgeräten ausgelegt und ideal für Lagerbestandsverwaltung, Logistik und Einzelhandelsumgebungen, in denen Barcodescanning entscheidend ist. Es nutzt native Android-Funktionen über Plattformkanäle, um eine zuverlässige Leistung und tiefgreifende Kontrolle über Scanning-Vorgänge sicherzustellen.

Anwendungsfälle

  • Bestandsverwaltung
  • Einzelhandels-Kassen-Systeme
  • Logistikverfolgung
  • Asset-Tagging
  • Erfassung von Barcode-Daten

Hauptmerkmale

  • Eingang von Echtzeit-Scandaten
  • Konfigurierbare Scanner-Eingabesquellen
  • Nur für Android native Integration
  • Absichtsbasierte Kommunikation
  • Unterstützung für mehrere Zebra-Gerätemodelle

Geeignet für

  • Entwickler, die Zebra-Android-Geräte ansprechen
  • Anwendungen, die eine zuverlässige Barcode-Erfassung erfordern
  • Unternehmensreife Inventar-Apps
  • Feldservice- und Lagerverwaltungssoftware

Hinweise

  • Erfordert nur die Android-Plattform
  • Zebra-Geräteabhängigkeit
  • Erforderliche korrekte DataWedge-Konfiguration
  • Beschränkt auf Geräte mit installiertem DataWedge
  • Könnte zusätzliche Berechtigungen erfordern

Original-README

Originaler README-Schnappschuss aus dem verknüpften Quell-Repository. Aktuelle Inhalte finden Sie im Repository.

flutter_datawedge

pub package

A Flutter package to communicate with Zebra DataWedge scanners.

Internally, this package uses the DataWedge APIs and therefore is only compatible with Android.

Getting Started

Example

Initialize the FlutterDataWedge Object and attach a listener to the onScanResult Stream.


    FlutterDataWedge dw = FlutterDataWedge();
    await dw.initialize();
    await createDefaultProfile(profileName: "Example Profile");
    StreamSubscription onScanSubscription = dw.onScanResult.listen((ScanResult result) {
        print(result.data);
    });
    
    [...]
    
    // Stop listening for new scans.
    onScanSubscription.cancel();

Also checkout the example application.

Profiles

Unlike previous versions, this version of the package won't create a profile and configure it while calling initialize. Instead a profile can be created using the createDefaultProfile method. To query all available profiles use requestProfiles, to query the active profile use requestActiveProfile. The functions waitForProfiles and waitForActiveProfile can be used to wait results after the requesting function has been called.

Further, see the official documentation to create, update or replace a DataWedge profiles.

async/await

Event though the public methods enableScanner(), activateScanner() and scannerControl() are asynchronous they return as soon as the command is executed. Each of these methods (as well as initialize()) will cause ActionResult objects to be emitted on the onScannerEvent Stream. Those can be used to determine the outcome of a command and properly wait for it. Here is a short example:

    FlutterDataWedge dw = FlutterDataWedge();
    await dw.initialize();
    
    // This would be a properly awaited version of enableScanner
    Future<ActionResult> enableScanner() {
        final completer = Completer<ActionResult>();
        final myIdentifier = "someIdentifier";
        
        StreamSubscription onScannerEventSubscription = dw.onScannerEvent.listen((ActionResult result) {
            if (result.commandIdentifier == myIdentifier) {
                completer.complete(result);
            }
        });
        
        
        dw.enablescanner(true,commandIdentifier: myIdentifier);
        
        return completer.future;
    }

Acknowledgements

The package was started by rafaeljustinox and and contains contributions by LenhartStephan. It is now maintained by Circus Kitchens.

Kategorien

Abhängigkeiten

Abhängigkeiten 8 Einträge

Quell-Repository

Projekte, die dieses Paket verwenden

Noch keine Daten verfügbar.