Skip to content
pubscout

esc_pos_utils

1.1.0, released 5 years ago by tablemi.com

Generate ESC/POS commands to send to thermal printers.

WASM-readyQuiet but busy
$ flutter pub add esc_pos_utils
Source repository

What it does

Provides core Dart classes to generate ESC/POS command byte arrays for thermal printers. It allows you to format text, tables, images, barcodes, and QR codes into standard printer commands.

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

Use it when

  • You need to build a custom printing pipeline for thermal printers.
  • You are creating a receipt printing module using ESC/POS commands.

Skip it when

  • You are looking for pre-built Bluetooth or Network printer connection wrappers (this package only generates bytes).
  • You need standard PDF or document printing.

Strengths

  • Supports multiple printer profiles and code tables.
  • Generates raw byte commands for text, tables, images, and barcodes.
  • Null-safe and supports multiple platforms.

Weaknesses

  • Does not handle network or Bluetooth connectivity directly.
  • Hardware support varies by thermal printer model.

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');
bytes += generator.cut();

Alternatives

Packages that do the same job and could replace esc_pos_utils.

Works with

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