flutter_esc_pos_network_universal 1.0.2
flutter_esc_pos_network_universal: ^1.0.2 copied to clipboard
The library allows printing receipts using ESC/POS commands using thermal Wi-Fi/Ethernet printer.
1.0.2 #
- Fix: Seamless Long Receipts (Universal) — Resolved the "white gap" issue on both Web and IO (macOS/Mobile) by generating the entire receipt as a single continuous ESC/POS command instead of slicing it into chunks.
- Improvement: Transmission Flow Control — Added transmission-level chunking (5KB chunks with a 20ms delay) across all platforms. This prevents data loss and printer buffer overflows that previously caused middle sections of long receipts to be blank.
- Stability: Added
flush()calls and small delays between data chunks to give printer hardware time to process high-resolution bitmaps reliably.
1.0.1 #
- Fix: Chunk-seam artifact on Web — The previous chunked image approach sent each slice as a separate ESC/POS
GS v 0command, causing the printer to advance one dot-line between chunks. This produced white horizontal gaps and doubled/ghosted text lines at chunk boundaries. The web implementation now sends the full receipt bitmap as a singleGS v 0command, eliminating all seams. - Removed
chunkHeightfrom public API — ThechunkHeightparameter andBasePrinterNetworkManager.chunkHeightgetter have been removed. Chunking is now a private implementation detail of the IO (mobile/desktop) path only. The web path does not chunk. This is a minor breaking change for anyone passingchunkHeighttoPrinterNetworkManager— simply remove the argument. - Screenshot delay increased on Web —
captureFromLongWidgetdelay raised from 200 ms to 500 ms to give fonts additional time to render into the browser canvas before the bitmap is captured.
1.0.0 #
- Universal Support: Standardized API for both IO (Mobile/Desktop) and Web platforms.
- Widget Printing: Added
printWidgetmethod to capture and print any Flutter widget as a thermal receipt. - High-Performance Isolates: Utilizes
computefor image processing to maintain UI thread responsiveness. - Chunked Data Support: Automatic chunking of large images for IO platforms.
- Extension Status Stream: Real-time monitoring of the Local TCP Extension availability on Web.
- Paper Size Support: Support for 58mm, 72mm, and 80mm paper widths.
- Improved Networking: Unified connection handling, timeouts, and error reporting.