Skip to content
pubscout

flutter_pos_printer_platform_image_3

1.2.4, released 2 years ago by an unverified publisher

Cross‑platform plugin to discover printers and send ESC/POS byte commands via Bluetooth, USB or network.

$ flutter pub add flutter_pos_printer_platform_image_3
Source repository

What it does

The package scans for Bluetooth, BLE and network printers, connects to them, and streams state changes. It then sends raw List<int> bytes to the selected printer on Android, iOS and Windows.

AI-written summary of version 1.2.4, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to print receipts or tickets from a Flutter app on Android, iOS or Windows.
  • You require low‑level control over ESC/POS commands and multiple connection types (Bluetooth, USB, TCP).

Skip it when

  • You only target web or macOS platforms.
  • You need high‑level PDF or image printing without handling raw bytes.

Strengths

  • Supports Android, iOS and Windows with Bluetooth, BLE, USB and network interfaces.
  • Provides a state stream for connection status.
  • Forked and actively maintained with bug fixes.

Weaknesses

  • Limited to ESC/POS raw byte printing; no higher‑level layout helpers.
  • No web or macOS support.
  • Requires native permission setup and platform‑specific configuration.

Setup

Kind
Plugin (native code)
Effort
Medium
Code generation
No
Direct dependencies
5

Add Android minSdkVersion 21, Bluetooth permissions, and targetSdk 31. iOS requires NSBluetooth* usage descriptions and background modes in Info.plist. Windows may need IP address configuration for network printers.

import 'package:flutter_pos_printer_platform/flutter_pos_printer_platform.dart';

final manager = PrinterManager.instance;
// Scan for Bluetooth printers
manager.discovery(type: PrinterType.bluetooth).listen((device) => print(device));
// Connect and print
await manager.connect(type: PrinterType.bluetooth, model: BluetoothPrinterInput(name: 'MyPrinter', address: '00:11:22:33:44:55'));
manager.send(type: PrinterType.bluetooth, bytes: [0x1B, 0x40, /* ESC/POS commands */]);
await manager.disconnect(type: PrinterType.bluetooth);

Alternatives

Packages that do the same job and could replace flutter_pos_printer_platform_image_3.

Works with

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