esc_pos_utils
1.1.0, released 5 years ago by tablemi.com
Generate ESC/POS commands to send to thermal printers.
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.
- esc_pos_utils_plus
Generate ESC/POS commands for thermal receipt printers.
50Compare - printing
Plugin to generate and print PDFs on Android, iOS, macOS, Windows, Linux and web
88Compare - flutter_esc_pos_utils
Generate ESC/POS commands to print via Bluetooth, Network, or USB thermal printers.
50Compare - acronym
A simple package to generate acronyms from strings with support for stop words and syllables.
45Compare
Works with
Packages commonly used together with esc_pos_utils: ones it builds on, ones built on it, and its own family.
- imageesc_pos_utils depends on itPure Dart library to load, manipulate, encode, and decode various image formats.
- hexesc_pos_utils depends on itProvides simple HEX.encode and HEX.decode functions for converting between byte lists and hexadecimal strings.
- gbk_codecesc_pos_utils depends on itGBK codec converter library for encoding and decoding strings and byte streams.
- esc_pos_printerBuilt on esc_pos_utilsPrint receipts using an ESC/POS thermal WiFi or Ethernet printer in Flutter and Dart projects.