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.
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.
- printing
Plugin to generate and print PDFs on Android, iOS, macOS, Windows, Linux and web
88Compare - esc_pos_printer
Print receipts using an ESC/POS thermal WiFi or Ethernet printer in Flutter and Dart projects.
50Compare - esc_pos_utils_plus
Generate ESC/POS commands for thermal receipt printers.
50Compare - esc_pos_utils
Generate ESC/POS commands to send to thermal printers.
50Compare
Works with
Packages commonly used together with flutter_esc_pos_utils: ones it builds on, ones built on it, and its own family.
- imageflutter_esc_pos_utils depends on itPure Dart library to load, manipulate, encode, and decode various image formats.
- hexflutter_esc_pos_utils depends on itProvides simple HEX.encode and HEX.decode functions for converting between byte lists and hexadecimal strings.
- gbk_codecflutter_esc_pos_utils depends on itGBK codec converter library for encoding and decoding strings and byte streams.
- flutter_esc_pos_networkBuilt on flutter_esc_pos_utilsPrint receipts via ESC/POS over Wi‑Fi/Ethernet printers