Skip to content
pubscout

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.

$ flutter pub add print_bluetooth_thermal
Source repository

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.

Works with

Packages commonly used together with print_bluetooth_thermal: ones it builds on, ones built on it, and its own family.