A flutter plugin that prints esc commands to printers in different platforms such as android, ios, windows and different interfaces Bluetooth and BLE, TCP and USB
Package selection guidance compiled from public package information, community data, and project usage.
The thermal_printer package is a Flutter plugin enabling the sending of ESC/POS commands to thermal printers across multiple platforms, including Android, iOS, and Windows. It supports various connection methods such as Bluetooth, BLE, TCP, and USB, making it ideal for printing receipts, labels, and invoices in diverse environments. The plugin simplifies integration with hardware printers by abstracting low-level communication protocols. It is particularly useful for point-of-sale systems, inventory management, and mobile printing applications.
Use cases
Receipt printing in POS systems
Label printing for inventory
Mobile printing via Bluetooth
Invoice generation on-the-go
Cross-platform printing solutions
Key features
Supports Android, iOS, and Windows
Multiple connection interfaces: Bluetooth, BLE, TCP, USB
Sends ESC/POS commands directly
Easy integration with Flutter apps
Cross-platform compatibility
Suitable for
Retail and hospitality apps
Inventory and logistics software
Mobile point-of-sale systems
Custom printing solutions
Developers building cross-platform printing features
Considerations
Requires compatible thermal printer
Printer-specific ESC/POS command knowledge needed
Bluetooth permissions required on Android/iOS
USB connectivity may need additional setup
TCP/IP configuration required for network printers
Original README
Original README snapshot from the linked source repository. Visit the repository for the latest content.
thermal_printer
A library to discover printers, and send printer commands.
This library allows to print esc commands to printers in different platforms such as android, ios, windows and different interfaces as Bluetooth and BLE, USB and Wifi/Ethernet
error:'State restoration of CBCentralManager is only allowed for applications that have specified the "bluetooth-central" background mode'
info.plist add:
<key>NSBluetoothAlwaysUsageDescription</key>
<string>Allow App use bluetooth?</string><key>NSBluetoothPeripheralUsageDescription</key><string>Allow App use bluetooth?</string><key>UIBackgroundModes</key><array><string>bluetooth-central</string><string>bluetooth-peripheral</string></array>