flutter_thermal_printer_windows 0.0.1 copy "flutter_thermal_printer_windows: ^0.0.1" to clipboard
flutter_thermal_printer_windows: ^0.0.1 copied to clipboard

PlatformWindows

Bluetooth thermal printer support for Flutter on Windows. Discovery, pairing, connection, and ESC/POS receipt printing for POS applications.

0.0.1 #

  • Initial release.
  • Bluetooth printer discovery (scan, SPP filter).
  • Pairing and connection management (pair, unpair, connect, disconnect).
  • Connection state stream and diagnostics (getPrinterCapabilities, getPrinterStatus, getPairedPrinters).
  • ESC/POS command generation (text, alignment, bold, underline, font size, image, barcode, QR, feed, cut).
  • PrintEngine: receipt-to-ESC/POS conversion, job queue per printer, sendRawCommands.
  • ThermalPrinterWindows main API (singleton): scanForPrinters, pairPrinter, unpairPrinter, getPairedPrinters, connect (optional printSampleOnSuccess), printConnectionSuccessSample, disconnect, getConnectionStateStream, printText, printReceipt, printRawBytes, getPrinterCapabilities, getPrinterStatus).
  • Data models: BluetoothPrinter, Receipt, ReceiptItem, ReceiptSettings, PrinterCapabilities, PrinterStatus, PairingResult, ConnectionResult.
  • Validation: Receipt and ReceiptSettings validation with ValidationException.
  • Error hierarchy: ThermalPrinterException and subclasses with errorCode, cause, context; fromCode() mapping.
  • Windows plugin: method channel and C++/WinRT Bluetooth implementation (MTA worker thread, SPP discovery, pairing, StreamSocket connection, raw byte send).
  • Local status tracking (isPaired, connectionState) for Windows where native pairing status is unreliable.
  • PlatformException → ThermalPrinterException mapping with user-friendly error messages.
  • Production-oriented logging (errors only in release; verbose logs in debug builds).
1
likes
140
points
132
downloads

Publisher

unverified uploader

Weekly Downloads

Bluetooth thermal printer support for Flutter on Windows. Discovery, pairing, connection, and ESC/POS receipt printing for POS applications.

Repository (GitHub)
View/report issues

Topics

#bluetooth #thermal-printer #windows #esc-pos #pos

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on flutter_thermal_printer_windows

Packages that implement flutter_thermal_printer_windows