Flutter Thermal Printer Plus

A comprehensive Flutter plugin for thermal printing supporting 58mm, 72mm, 80mm, and 110mm paper sizes with Bluetooth, WiFi, and USB connectivity.

Features

  • Support for multiple paper sizes (58mm, 72mm, 80mm, 110mm)
  • Bluetooth connectivity
  • WiFi connectivity
  • USB connectivity (Android only)
  • Easy-to-use builder pattern for creating receipts
  • ESC/POS command optimization for each paper size

Installation

Add this to your package's pubspec.yaml file:

flutter_thermal_printer_plus: any

Usage

import 'package:flutter_thermal_printer_plus/flutter_thermal_printer_plus.dart';

// Scan for Bluetooth printers final printers = await FlutterThermalPrinterPlus.scanBluetoothDevices();

// Connect to a printer await FlutterThermalPrinterPlus.connectBluetooth(printer.address);

// Create and print a receipt final builder = PrintBuilder(PaperSize.mm80) ..text('Hello World!', align: AlignPos.center) ..line() ..cut();

await FlutterThermalPrinter.print(builder);

Platform Support

Platform Bluetooth WiFi USB
Android
iOS

Paper Sizes

  • 58mm: 384 dots width, 32 characters
  • 72mm: 512 dots width, 42 characters
  • 80mm: 576 dots width, 48 characters
  • 110mm: 832 dots width, 69 characters

License

MIT License