Repository navigation
flutter_zpl_printer 0.2.0
Build and print with one import. flutter_zpl_printer now depends on and re-exports
flutter_zpl_generator.
Breaking
ZplPrintModeis nowPrinterPrintMode(fileprinter_print_mode.dart). It's the print mode the
printer reports ingetStatus().printMode. The rename frees the name forflutter_zpl_generator's
ZplPrintMode, the mode you set in a label's configuration. Migration: rename the type in your code.
If you imported the generator with a prefix only to avoid this clash, you can drop the prefix.
Added
ZebraPrinter.printLabel(ZplGenerator label): builds and sends a label.- Everything from
flutter_zpl_generatoris available through
package:flutter_zpl_printer/flutter_zpl_printer.dart(ZplGenerator,ZplText,ZplBarcode,
ZplImageDownload, ...).
Changed
ZebraPrinter.printImageusesflutter_zpl_generator: a~DGdownload (uncompressed hex) before
^XA, then^XGto place it. That's the image path tested on hardware. New optional parameters:
dithering(default threshold) andgraphicName(defaultIMG).GraphicsUtil.printImage(low-level inline^GF) defaults touseCompression: false; Z64 is opt-in
and not yet verified on a printer.
Fixed
- Z64 checksum.
Z64Compressornow computes CRC-16/XMODEM over the Base64 text, as Zebra's
ZPL II Programming Guide specifies ("calculated over the :encoded_data field"). It was computed
over the raw bitmap with CRC-16/CCITT-FALSE. Matchesflutter_zpl_generator's implementation.
Z64Compressor.crc16now returns the XMODEM value and accepts anyList<int>.
Documentation
- README opens with a direct answer and adds an FAQ (Link-OS SDK, iOS without MFi, supported
printers, images and PDFs, status, USB, web) and a comparison with other Zebra packages. - pub.dev Example tab now shows
example/example.md(usage snippets) instead of the app shell. - Library-level API docs with a quick start;
context7.jsonfor coding-agent documentation indexes. - pub.dev topics:
labelsreplacesusb(USB is experimental).
Example
- New Print image section: prints a generated test picture via
printImage, via
printLabel(ZplGenerator(...)), and viaGraphicsUtil.printImage(^GF, hex and Z64) for comparison. - The example no longer depends on
flutter_zpl_generatordirectly.
📦 pub.dev/packages/flutter_zpl_printer · 📘 Integration guide · ❓ FAQ