Skip to content
pubscout

zsdk

5.0.0, released 9 months ago by dev.lamt.dev

A Flutter plugin for printing ZPL and PDFs over TCP/IP and Bluetooth using Zebra Link OS.

WASM-ready
$ flutter pub add zsdk
Source repository

What it does

Allows Flutter applications to communicate with Zebra Link-OS thermal printers. It supports sending ZPL data or files, printing PDF files directly, checking printer status, configuring printer settings, running calibrations, and rebooting the printer.

AI-written summary of version 5.0.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to print ZPL labels or PDF documents to Zebra thermal printers in a Flutter app.
  • You need to communicate with Zebra printers over TCP/IP or Bluetooth (MFi on iOS, MAC address on Android).

Skip it when

  • You are printing to non-Zebra printers or standard office printers.
  • You need to print PDF byte arrays on iOS or Android (PDF printing requires a file path).

Strengths

  • Supports both TCP/IP and Bluetooth connections on iOS and Android.
  • Provides printer management features like settings retrieval, calibration, and status checking.
  • Supports direct PDF printing on compatible printers using Link-OS v6.3 or later.

Weaknesses

  • Requires specific printer firmware and Virtual Device for PDF Direct setup for PDF printing.
  • iOS Bluetooth requires MFi accessories configuration and specific permissions setup.

Setup

Kind
Plugin (native code)
Effort
Medium
Code generation
No
Direct dependencies
0

Requires platform-specific configuration for Bluetooth (Info.plist keys and ExternalAccessory framework for iOS, permissions in AndroidManifest.xml for Android). PDF printing requires Zebra printer firmware >= Link-OS v6.3 and Virtual Device for PDF Direct installed.

final zsdk = ZSDK();
zsdk.printZplDataOverTCPIP(
  data: '^XA^FO17,16^GB379,371,8^FS^FT65,255^A0N,135,134^FDTEST^FS^XZ',
  address: '10.0.0.100',
  port: 9100,
).then((value) {
  final printerResponse = PrinterResponse.fromMap(value);
  if (printerResponse.errorCode == ErrorCode.SUCCESS) {
    // Success
  }
});

Alternatives

Packages that do the same job and could replace zsdk.