Skip to content
pubscout

windows_printer

0.2.1, released a year ago by manasbasnet.com

A Flutter plugin for managing and interacting with printers on Windows platforms.

WASM-ready
$ flutter pub add windows_printer
Source repository

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.

Works with

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