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.
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.
- flutter_thermal_printer
Print via ESC/POS commands on thermal printers using Bluetooth, BLE, USB, or WiFi.
78Compare - universal_ble
Cross-platform Bluetooth Low Energy (BLE) plugin for Flutter
92Compare - sunmi_printer_plus
Connect to Sunmi printers, print text, barcodes, QR codes, images, and control cash drawers.
85Compare - flutter_reactive_ble
Reactive BLE plugin for Android and iOS that supports multiple devices
86Compare
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.
- rxdartflutter_pos_printer_platform_image_3 depends on itImplementation of the ReactiveX API for asynchronous programming leveraging native Dart Streams.
- network_info_plusflutter_pos_printer_platform_image_3 depends on itFlutter plugin for discovering network and WiFi details.
- enum_to_stringflutter_pos_printer_platform_image_3 depends on itConvert enum values to readable strings and back, with camelCase and custom mappings.
- ping_discover_network_forkedflutter_pos_printer_platform_image_3 depends on itLibrary to ping IP subnets and discover local network devices and services.