Skip to main content

xprinter_flutter 0.2.0 copy "xprinter_flutter: ^0.2.0" to clipboard
xprinter_flutter: ^0.2.0 copied to clipboard

PlatformAndroid

Direct Android printing for XPrinter label and POS printers over Bluetooth, TCP/IP, and USB with TSPL, ZPL, CPCL, and ESC/POS support.

0.2.0 (unreleased, pending hardware validation) #

  • Add direct printPdf(), printImage(), and printRgbaImage() APIs.
  • Add configurable bitmap rotation, fit, threshold, bit polarity, copies, and a tested XP-365B 75x100 mm preset.
  • Move RGBA-to-TSPL conversion to a background isolate.
  • Fix Android 14+ USB mutable PendingIntent restriction.
  • Serialize disconnect/write operations and invalidate connections after write failures.
  • Request only required Bluetooth permissions for paired-device connection.
  • Add in-process printer reconnect API (never auto-replays print data).
  • Default diagnostic test prints to stored media settings for XP-365B.
  • Fix stale example widget test and remove redundant Android manifest permissions.
  • Add encoder tests and Flutter CI checks.

0.1.2 #

  • Added useStoredPrinterSettings for TSPL labels.
  • In stored-settings mode, print jobs do not overwrite media or printer configuration.
  • Updated the XP-365B example to use the proven stored-settings path after diagnostic testing.
  • Kept the isolated diagnostic tests for identifying media-command related ERROR light issues.

0.1.1 #

  • Added TSPL gap sensor calibration with calibrateGapSensor().
  • Updated the XP-365B example with configurable label width, height, and gap.
  • Simplified the TSPL diagnostic label to avoid unrelated QR/barcode variables while troubleshooting media errors.
  • Added guidance for post-print ERROR light issues caused by label/gap sensor mismatch.

0.1.0 #

  • Initial Android release.
  • Direct Bluetooth SPP printing.
  • Bluetooth paired-device listing and active discovery.
  • Direct TCP/IP printing with port 9100 default.
  • Direct USB bulk printing with Android USB permission handling.
  • Structured TSPL labels with text, barcode, QR code, box, bar, copies, label size and gap controls.
  • Raw TSPL, ZPL, CPCL and arbitrary byte command support.
  • Basic ESC/POS text and QR helpers.
  • Connection status and connection event stream.
  • Android 12+ Bluetooth support using SCAN/CONNECT permissions without location permission.
  • No external XPrinter app and no vendor SDK binary dependency.
1
likes
140
points
559
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Direct Android printing for XPrinter label and POS printers over Bluetooth, TCP/IP, and USB with TSPL, ZPL, CPCL, and ESC/POS support.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, printing

More

Packages that depend on xprinter_flutter

Packages that implement xprinter_flutter