Skip to main content

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

PlatformAndroid

Flexible Flutter thermal printing package for PDF widgets, PDFs, and image frames over network, USB, and Bluetooth.

Changelog #

0.2.0 #

  • Breaking: removed the usb_serial dependency. Android USB discovery and UsbPrinterTransport moved to the new srag_printer_usb package; call SragPrinterUsb.register() to enable them. Apps that do not print over USB no longer pull in usb_serial, which does not build on Gradle 9.
  • Added UsbPrinterBackend, the extension point srag_printer_usb registers.
  • Added Classic Bluetooth (SPP) printing on Android. srag_printer is now a plugin with Android code: Bluetooth discovery lists every paired device with its BluetoothDeviceType, and paired devices that are not BLE-only (including built-in POS printers such as InnerPrinter) print through the new ClassicBluetoothPrinterTransport. BLE-only devices keep using BluetoothPrinterTransport.
  • Fixed PdfWidgetRenderer letting widget build errors escape unwrapped; they are now reported as PrinterRenderException.
  • Fixed Bluetooth discovery throwing on iOS: paired devices are only queried on Android.
  • Fixed the first Bluetooth scan on iOS finding nothing: discovery waits up to three seconds for the adapter to leave the unknown state.

0.1.0 #

  • Initial independent srag_printer package scaffold.
  • Added printing from PDF widgets, PDF bytes, and image frames.
  • Added generic discovery models and platform-aware discovery entry point.
  • Added network, USB, Bluetooth BLE, Windows driver, and Windows serial transports.
  • Added generic receipt PDF widgets and documentation.
6
likes
150
points
408
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Flexible Flutter thermal printing package for PDF widgets, PDFs, and image frames over network, USB, and Bluetooth.

Repository (GitHub)
View/report issues

Topics

#printer #thermal-printer #esc-pos #receipt #bluetooth

License

MIT (license)

Dependencies

esc_pos_utils_plus, ffi, flutter, flutter_blue_plus, image, pdf, pdfx

More

Packages that depend on srag_printer

Packages that implement srag_printer