zpl_kit 0.0.7
zpl_kit: ^0.0.7 copied to clipboard
A declarative layout engine for building and printing Zebra Programming Language (ZPL) labels with Flexbox-like components.
0.0.7 - 2026-04-17 #
- Direct Printing: Formally integrated
TcpZplPrinter(Socket) andHttpZplPrinter(REST) into the core library for direct communication with thermal printers across Mobile and Web. - Documentation: Expanded API documentation across all core components and printing services.
0.0.6+2 - 2026-04-10 #
- Analysis Fix: Resolved a circular dependency between the main library and internal widgets that caused pub.dev analysis to fail.
- Compatibility: Improved support for older Flutter stable versions by replacing
withValues()with the more broadly supportedwithOpacity(). - Maintenance: Formatted all source files to improve pub.dev scoring and adhere to Dart style guidelines.
0.0.6+1 - 2026-04-08 #
- Documentation: Fixed missing images in README on pub.dev by switching to absolute URLs.
0.0.6 - 2026-04-08 #
- Industrial Accuracy: Refactored
ZplBarcodeto use exact ISO-standard module math for width calculation (Code 128/39), ensuring pixel-perfect alignment on physical Zebra printers. - Labelary Integration: Added
ZplLabelaryPreviewwidget andLabelaryServicefor 100% accurate, cloud-powered label previews. - Refined Rendering: Removed ellipsis from
ZplTextpreview to match real thermal printer behavior (physical clipping vs digital truncation). - Network Support: Added
httpdependency to handle remote cloud rendering requests. - Example Enhancements: Updated example app with a new "Cloud Preview" tab for side-by-side comparison between Native and Labelary rendering engines.
0.0.5 - 2026-04-08 #
- Maintenance Release: Force republish to resolve stuck pub.dev analysis queue.
- Formatted source code to improve pub points score.
0.0.4 - 2026-04-07 #
Major Architectural Upgrade #
- 3-Pass Layout Engine: Refactored the internal engine to separate size calculation, coordinate assignment, and rendering.
- Pass 1:
performLayout(Bottom-Up sizing) - Pass 2:
finalizeLayout(Top-Down absolute positioning) - Pass 3:
compileorpaint(Rendering)
- Pass 1:
- Native Preview Support: Added
ZplPreviewwidget for instant, offline visual label preview without Labelary API. - Offline Barcode Rendering: Integrated
barcodepackage for high-fidelity 1D barcode previews on the Flutter canvas.
Components & Core #
- ZplPreview: New widget for rendering ZPL layouts directly to a Flutter canvas.
- Improved Performance: Separating coordinate calculation from ZPL generation speeds up complex label builds.
- Refined Layouts:
ZplColumnandZplRownow handle coordinate propagation more robustly.
0.0.3 - 2026-04-01 #
- New Layout Components: Added
ZplCenter,ZplExpanded,ZplSpacer, andZplDividerfor advanced alignment and spacing control. - Flex Layout Improvements:
ZplRowandZplColumnnow support weighted distribution usingZplExpandedand improved constraint propagation. - Rich Text Features:
ZplTextnow supports multi-line wrapping withmaxLinesand text alignment (Left, Center, Right, Justified) via the ZPL Field Block (^FB) command. - Validation Suite: Introduced automated internal tests for validating layout primitives and complex shipping label designs.
- Documentation Overhaul: Major README updates with deep-dive examples, before/after code blocks, and feature highlights.
0.0.2 #
- Advanced Layout: Added
ZplStackfor overlapping elements andZplGraphicBoxfor lines and boxes. - Label Dimensions: Introduced
ZplLabelSizewith pre-defined standards like Shipping (4x6). - Improved API: Added
ZplFont.helvetica()helper for simpler scalable font management. - Printing Support: Added
ZebraPrinterServicein the example app for direct socket-based network printing. - Example Enhancements: Updated the example app with a full professional shipping label layout and printer settings.
0.0.1+1 #
- Added comprehensive DartDoc documentation for core API elements.
- Fixed class names in the README example.
- Improved library-level documentation for pub.dev scoring.
0.0.1 #
- Initial Release: Core declarative layout engine for Zebra Programming Language (ZPL).
- Layout Components: Added
ZplColumn,ZplRow, andZplPaddingfor coordinate-free design. - Basic Widgets: Implemented
ZplTextandZplBarcode(supporting Code 128 and other common types). - Compiler: Integrated
ZplBuilderto transform the component tree into raw ZPL strings. - Example Project: Added a full Flutter example app for interactive testing and demonstration.