wf_flutter_sdk 0.1.4 copy "wf_flutter_sdk: ^0.1.4" to clipboard
wf_flutter_sdk: ^0.1.4 copied to clipboard

PlatformAndroid

A small Flutter package that generates CPCL (printer) commands and produces binary output ready to send to printers. Supports GBK/UTF-8 encodings and bitmap conversion.

wf_flutter_sdk #

This package provides a CPCL command generator for label printers. It supports GBK and UTF-8 encodings, bitmap conversion and many CPCL commands via a fluent API.

Usage example:

import 'package:wf_flutter_sdk/wf_flutter_sdk.dart';

void example() async {
  final gen = CPCLGenerator();
  await gen.initLabel(CInitLabelOptions(width: 600, height: 400));
  await gen.text(CTextOptions(font: 1, x: 10, y: 10, data: 'Hello', size: 0));
  await gen.print();
  final bytes = gen.binary(); // send to printer
}

Publishing #

I cannot publish to pub.dev from here, but you can run:

dart pub publish --dry-run
dart pub publish
0
likes
135
points
13
downloads

Documentation

Documentation
API reference

Publisher

unverified uploader

Weekly Downloads

A small Flutter package that generates CPCL (printer) commands and produces binary output ready to send to printers. Supports GBK/UTF-8 encodings and bitmap conversion.

Repository (GitHub)

License

LGPL-3.0 (license)

Dependencies

android_usb_printer, ble_plugin, enough_convert, flutter, flutter_spp_bluetooth_serial, image

More

Packages that depend on wf_flutter_sdk