Skip to content
pubscout

flutter_esc_pos_utils

1.0.1, released 3 years ago by lithos.in

Generate ESC/POS commands to print via Bluetooth, Network, or USB thermal printers.

WASM-readyCopyleft license
$ flutter pub add flutter_esc_pos_utils
Source repository

What it does

Generates ESC/POS byte commands for thermal printers. It provides helper classes for text styling, tables, images, barcodes, QR codes, and paper control operations.

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

Use it when

  • You need to build receipt tickets for thermal POS printers.
  • You want to format text, tables, and images into raw printer bytes.

Skip it when

  • You are printing standard documents to non-thermal office printers.

Strengths

  • Supports multiple paper sizes and various code tables.
  • Handles complex ticket elements like tables, barcodes, and images.

Weaknesses

  • Printer feature support varies heavily by hardware model.
  • Does not handle the physical connection transport layer directly.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
3

Not documented

final profile = await CapabilityProfile.load();
final generator = Generator(PaperSize.mm80, profile);
List<int> bytes = [];
bytes += generator.text('Hello World', styles: PosStyles(bold: true));
bytes += generator.cut();

Alternatives

Packages that do the same job and could replace flutter_esc_pos_utils.

Works with

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