Skip to content
pubscout

esc_pos_utils_plus

2.0.4, released 2 years ago by mylekha.app

Generate ESC/POS commands for thermal receipt printers.

WASM-ready
$ flutter pub add esc_pos_utils_plus
Source repository

What it does

Provides core Flutter and Dart classes to build tickets and format text, tables, images, barcodes, and QR codes into ESC/POS byte commands suitable for thermal receipt printers via network, bluetooth, or USB plugins.

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

Use it when

  • You need to format receipts and print tickets for thermal printers in Flutter
  • You are building a POS application that communicates with receipt printers

Skip it when

  • You are printing standard documents like PDFs to desktop printers
  • You need high-level printing UI dialogs instead of raw byte commands

Strengths

  • Supports multiple paper sizes, formatting styles, tables, and images
  • Supports various printer profiles and code tables for international text
  • Works well with network and bluetooth companion printer plugins

Weaknesses

  • Printer hardware support varies widely and some features may not work on specific thermal printer models
  • Only generates byte commands; actual transmission requires other packages like network or bluetooth plugins

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
2

Load the default capability profile and initialize the Generator class with your chosen paper size.

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_plus.

Works with

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