पैकेज, रिपॉज़िटरी और ऐप श्रेणियाँ खोजें

पैकेज विवरणv0.0.41

zebrautility

ज़ीब्रा प्रिंटर्स के साथ काम करने के लिए फ्लैटर प्लगइन

AndroidiOS
30-दिन डाउनलोड
409
लाइक
41
Pub अंक
110

पैकेज इंस्टॉल करें

flutter pub add zebrautility

पैकेज अवलोकन

सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।

ZebraUtility एक Flutter प्लगइन है जिसका उद्देश्य Zebra प्रिंटर के साथ संचार को सुविधाजनक बनाना है, जिससे डेवलपर्स को Flutter ऐप्स में प्रिंट कमांड भेजने और प्रिंटिंग कार्यों को प्रबंधित करने में सहायता मिलती है। यह Android और iOS दोनों प्लेटफॉर्म का समर्थन करता है, जिससे लेबल या रसीद प्रिंट करने की आवश्यकता वाले मोबाइल समाधान के लिए उपयुक्त है। इस प्लगइन के माध्यम से लॉजिस्टिक्स, रिटेल और इन्वेंट्री मैनेजमेंट में उपयोग किए जाने वाले ऐप्स में Zebra प्रिंटर कार्यक्षमता को एकीकृत करने के लिए एक सीधा इंटरफ़ेस प्रदान किया जाता है। मूल नेटिव Zebra SDKs पर बनाया गया, यह विभिन्न Zebra उपकरणों के साथ विश्वसनीय प्रदर्शन और संगतता सुनिश्चित करता है।

उपयोग

  • मोबाइल इन्वेंटरी प्रबंधन
  • रिटेल रसीद प्रिंटिंग
  • शिपिंग लेबल जनरेशन
  • संपत्ति ट्रैकिंग एप्लिकेशन
  • फील्ड सेवा दस्तावेज़

मुख्य विशेषताएँ

  • क्रॉस-प्लेटफ़ॉर्म समर्थन (Android और iOS)
  • प्रिंट कार्य भेजने के लिए सरल API
  • ज़ीब्रा प्रिंटर SDK के साथ एकीकरण
  • रियल-टाइम प्रिंटिंग स्थिति मॉनिटरिंग
  • ZPL और EPL भाषाओं का समर्थन

इनके लिए उपयुक्त

  • मोबाइल प्रिंटिंग एप्लिकेशन बना रहे विकासकर्ता
  • लॉजिस्टिक्स और सप्लाई चेन सॉफ्टवेयर
  • रिटेल और पॉइंट-ऑफ-सेल सिस्टम
  • फील्ड डेटा संग्रह उपकरण
  • औद्योगिक मोबाइल एप्लिकेशन्स

विचार योग्य बातें

  • संगत ज़ीब्रा प्रिंटर हार्डवेयर की आवश्यकता है
  • नेटवर्क प्रिंटिंग के लिए अतिरिक्त कॉन्फ़िगरेशन की आवश्यकता हो सकती है
  • नीचे दिए गए SDK द्वारा समर्थित ज़ीब्रा प्रिंटर मॉडल तक सीमित
  • प्लेटफॉर्म-विशिष्ट सेटअप चरणों की आवश्यकता है
  • वायरलेस प्रिंटर्स के लिए स्थिर नेटवर्क कनेक्शन पर निर्भर

मूल README

संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।

Flutter ZebraUtility

Zebra utility is a plugin for working easily with zebra printers in your flutter project.

  • Discovery bluetooth and wifi printers in android and bluetooth printers in iOS.
  • Connect and disconnect to printers
  • Set mediatype, darkness, calibrate command without writing any ZPL code for ZPL printers.
  • Rotate ZPL without changing your zpl.

Installation

Android

Add this code to android block in build.gradle (Module level).

android {
    packagingOptions {
        exclude 'META-INF/LICENSE.txt'
        exclude 'META-INF/NOTICE.txt'
        exclude 'META-INF/NOTICE'
        exclude 'META-INF/LICENSE'
        exclude 'META-INF/DEPENDENCIES'
    }
}

iOS

Add Supported external accessory protocols in your info.plist and then add com.zebra.rawportto its. Add Privacy - Local Network Usage Description in your info.plist.

Example

Getting Started

for initial new object of printer use this.

     ZebraPrinter zebraPrinter = await Zebrautility.getPrinterInstance(
  onPrinterFound, onPrinterDiscoveryDone, onChangePrinterStatus,
  onPermissionDenied: onPermissionDenied);

You must pass 3 functions onPrinterFound, onPrinterDiscoveryDone and onChangePrinterStatus. onPrinterFound is called, when a new printer found. you can implement like this:

  Function onPrinterFound = (name, ipAddress) {
      print("PrinterFound :" + name + ipAddress);
    };

onPrinterDiscoveryDone is called, when discovery printers is done and finished. You can implement like this:

 Function onPrinterDiscoveryDone = () {
      print("Discovery Done");
    };

onChangePrinterStatus when the Status of printer changes, You can implement like this:

   Function onChangePrinterStatus = (status, color) {
      print("change printer status: " + status + color);
    };

onPermissionDenied is called, when android user deny location permission. You can implement like this:

  Function onPermissionDenied = () {
      print("Permission Deny.");
    };

Methods

For start Discovery bluetooth and wifi printres, use this method:

  zebraPrinter.discoveryPrinters();

For connecting to printer, pass ipAddreess for wifi printer or macAddress for bluetooth printer to connectToPrinter method.

 zebraPrinter.connectToPrinter("192.168.47.50");

You can set media type between Lable, Journal and BlackMark. You can choose media type by EnumMediaType.

  zebraPrinter.setMediaType(EnumMediaType.BlackMark);

You may callibrate printer after set media type. You can use this method.

zebraPrinter.calibratePrinter();

You can set darkness. the valid darkness value are -99,-75,-50,-25,0,25,50,75,100,125,150,175,200.

  zebraPrinter.setDarkness(25);

For print ZPL, you pass ZPL to print method.

  zebraPrinter.print("Your ZPL");

For rotate your ZPL without changing your ZPL, you can use this method. You can call this again for normal printing.

  zebraPrinter.rotate();

For disconnect from printer, use disconnect method. For battery saver, disconnect from printer when you not need printer.

  zebraPrinter.disconnect();

श्रेणियाँ

सोर्स रिपॉज़िटरी

इस पैकेज का उपयोग करने वाले प्रोजेक्ट

अभी कोई डेटा उपलब्ध नहीं है।