srag_printer 0.2.0
srag_printer: ^0.2.0 copied to clipboard
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_serialdependency. Android USB discovery andUsbPrinterTransportmoved to the newsrag_printer_usbpackage; callSragPrinterUsb.register()to enable them. Apps that do not print over USB no longer pull inusb_serial, which does not build on Gradle 9. - Added
UsbPrinterBackend, the extension pointsrag_printer_usbregisters. - Added Classic Bluetooth (SPP) printing on Android.
srag_printeris now a plugin with Android code: Bluetooth discovery lists every paired device with itsBluetoothDeviceType, and paired devices that are not BLE-only (including built-in POS printers such asInnerPrinter) print through the newClassicBluetoothPrinterTransport. BLE-only devices keep usingBluetoothPrinterTransport. - Fixed
PdfWidgetRendererletting widget build errors escape unwrapped; they are now reported asPrinterRenderException. - 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
unknownstate.
0.1.0 #
- Initial independent
srag_printerpackage 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.