A ZPL composer package
This package aims to facilitate the life developers who want to dynamically builds ZPL templates
This package can help you building ZPL templates in a very Flutter friendly way
dependencies:
flutter:
sdk: flutter
zpl_composer: ^0.0.1
import 'package:zpl_composer/zpl_composer';
final _page = Page(
size: PageSize.small,
child: Column(
children: [
Text(
'Title',
fontSize: 25,
),
for (Product product in _products)
Row(
children: [
Flex(
child: Text('Name'),
),
Flex(
align: FlexAlign.right,
child: Text(_product.name),
),
],
),
],
),
);
_page.build(); // ^XA^CFA,1^FO0,0,^FDTitle^FS^XZ