print_bluetooth_thermal
1.2.5, released 8 weeks ago by an unverified publisher
Print tickets on 58mm/80mm thermal Bluetooth printers from Flutter apps.
What it does
Provides a Flutter plugin to discover, connect to, and send print data to Bluetooth thermal printers on Android, iOS, macOS, and Windows. It handles permission checks and low‑level byte transmission for text and images.
AI-written summary of version 1.2.5, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to print receipts or tickets from a mobile or desktop Flutter app via Bluetooth
- The target printer is a 58mm or 80mm thermal printer that supports standard ESC/POS commands
Skip it when
- You require high‑throughput or network‑based printing (e.g., Wi‑Fi printers)
- You need a pure Dart solution without native code
Strengths
- No location permission required on Android
- Supports iOS/macOS with pure Swift implementation
- Handles Bluetooth permission flow on Android 12+
- Provides both byte‑level and string‑level printing APIs
Weaknesses
- Limited to Bluetooth printers; no Wi‑Fi or USB support
- Some functions unavailable on Windows (e.g., writeString, batteryLevel)
- Requires native configuration (Info.plist entries, entitlements, Android permissions)
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 4
Add NSBluetoothAlwaysUsageDescription and NSBluetoothPeripheralUsageDescription to iOS/macOS Info.plist; add com.apple.security.device.bluetooth entitlement for macOS; ensure Android manifest includes BLUETOOTH_CONNECT and BLUETOOTH_SCAN for Android 12+; import the package and call its static methods.
import 'package:print_bluetooth_thermal/print_bluetooth_thermal.dart';
Future<void> printDemo() async {
final bool btOn = await PrintBluetoothThermal.bluetoothEnabled;
if (!btOn) return;
final printers = await PrintBluetoothThermal.pairedBluetooths;
if (printers.isEmpty) return;
final mac = printers.first.macAdress;
final connected = await PrintBluetoothThermal.connect(macPrinterAddress: mac);
if (connected) {
await PrintBluetoothThermal.writeString(printText: PrintTextSize(size: 2, text: 'Hello world'));
await PrintBluetoothThermal.disconnect;
}
}Alternatives
Packages that do the same job and could replace print_bluetooth_thermal.
- safe_device
Detect jailbreak/root, emulator, mock location and other safety flags on iOS/Android devices.
87Compare - sunmi_printer_plus
Connect to Sunmi printers, print text, barcodes, QR codes, images, and control cash drawers.
85Compare - health_connector_hc_android
Android implementation of the health_connector plugin using Health Connect SDK.
75Compare - flutter_classic_bluetooth
Bluetooth Classic RFCOMM/SPP serial communication plugin for Flutter.
83Compare
Works with
Packages commonly used together with print_bluetooth_thermal: ones it builds on, ones built on it, and its own family.
- webprint_bluetooth_thermal depends on itLightweight bindings for browser APIs via JS interop
- plugin_platform_interfaceprint_bluetooth_thermal depends on itReusable base class for platform interfaces of Flutter federated plugins.
- imageprint_bluetooth_thermal depends on itPure Dart library to load, manipulate, encode, and decode various image formats.
- win_bleprint_bluetooth_thermal depends on itBluetooth Low Energy plugin for Windows Flutter and pure‑Dart projects