windows_printer
0.2.1, released a year ago by manasbasnet.com
A Flutter plugin for managing and interacting with printers on Windows platforms.
What it does
Allows developers to discover available printers, query printer properties, and send various types of print jobs on Windows. Supports raw ESC/POS commands for thermal receipt printers, rich text documents, and PDF files.
AI-written summary of version 0.2.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to print receipts or tickets to thermal printers on Windows
- You need to send PDF documents or formatted text to office printers from a Windows Flutter app
Skip it when
- You are targeting non-Windows platforms like Android, iOS, or macOS
- You require complex UI print preview screens out of the box
Strengths
- Built-in ESC/POS receipt builder for thermal printers
- Supports multiple print modes including raw data, rich text, and PDFs
- Hardware control features like cash drawer opening, paper cutting, and beeping
Weaknesses
- Limited exclusively to the Windows platform
- Emojis and unicode characters are not supported natively by thermal printers
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
Requires Windows 10 or higher and Flutter 3.0.0 or higher.
List<String> printers = await WindowsPrinter.getAvailablePrinters();
if (printers.isNotEmpty) {
final file = File('document.pdf');
final bytes = await file.readAsBytes();
await WindowsPrinter.printPdf(data: bytes);
}Alternatives
Packages that do the same job and could replace windows_printer.
- sunmi_printer_plus
Connect to Sunmi printers, print text, barcodes, QR codes, images, and control cash drawers.
85Compare - flutter_classic_bluetooth
Bluetooth Classic RFCOMM/SPP serial communication plugin for Flutter.
83Compare - print_bluetooth_thermal
Print tickets on 58mm/80mm thermal Bluetooth printers from Flutter apps.
80Compare - flutter_thermal_printer
Print via ESC/POS commands on thermal printers using Bluetooth, BLE, USB, or WiFi.
78Compare
Works with
Packages commonly used together with windows_printer: ones it builds on, ones built on it, and its own family.