esc_pos_utils_plus
2.0.4, released 2 years ago by mylekha.app
Generate ESC/POS commands for thermal receipt printers.
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.
- esc_pos_utils
Generate ESC/POS commands to send to thermal 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 - esc_pos_printer
Print receipts using an ESC/POS thermal WiFi or Ethernet printer in Flutter and Dart projects.
50Compare
Works with
Packages commonly used together with esc_pos_utils_plus: ones it builds on, ones built on it, and its own family.
- htmlesc_pos_utils_plus depends on itA Dart implementation of an HTML5 parser for strings and bytes.
- imageesc_pos_utils_plus depends on itPure Dart library to load, manipulate, encode, and decode various image formats.
- flutter_thermal_printerBuilt on esc_pos_utils_plusPrint via ESC/POS commands on thermal printers using Bluetooth, BLE, USB, or WiFi.
- esc_pos_printer_plusBuilt on esc_pos_utils_plusPrint receipts via ESC/POS thermal WiFi/Ethernet printers
- danfeBuilt on esc_pos_utils_plusParse DANFE and National NFSe XML documents into objects, Flutter widgets, or ESC/POS printer buffers.