widget_zpl_converter

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

widget zpl converter

Widget ZPL Converter #
The widget_zpl_converter package helps convert any Flutter widget to a ZPL/ZPL2 command. This is mainly targeted towards developers who need to print labels using thermal printers.
Features #

Convert any Flutter widget to a ZPL/ZPL2 command.
ZPL/ZPL2 command can be sent to a thermal printer using esc_pos_utils's Generator.rawBytes() method, or any other packages with similar functionality.
Supports variable widget sizes (while maintaining aspect ratio).

Usage #
To use this package, simply add widget_zpl_converter as a dependency in your pubspec.yaml file:
dependencies:
widget_zpl_converter: ^1.0.0
copied to clipboard
Then, import the package in your Dart code:
import 'package:widget_zpl_converter/widget_zpl_converter.dart';
copied to clipboard
Create a widget that you want to convert to a ZPL/ZPL2 command:
final myWidget = Container(
width: 100,
height: 100,
color: Colors.blue,
);
copied to clipboard
Create a ZplConverter object and pass the widget to the constructor:
final zplConverter = ZplConverter(myWidget);
copied to clipboard
You can then use the toZpl() method to convert any Flutter widget to a ZPL/ZPL2 command:
final zplCommand = zplConverter.toZpl();
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files:

Customer Reviews

There are no reviews.