escp_printer 1.0.1 copy "escp_printer: ^1.0.1" to clipboard
escp_printer: ^1.0.1 copied to clipboard

Helps you build raw base64 text to be printed by Epson dot matrix printers.

example/escp_printer_example.dart

import 'package:escp_printer/escp_printer.dart';

void main() {
  final texts = [
    "[C]<u><font size='big'>ORDER N°045</font></u>",
    "[L]",
    "[C]================================",
    "[L]",
    "[L]<b>BEAUTIFUL SHIRT</b>[R]9.99e",
    "[L]  + Size : S",
    "[L]",
    "[L]<b>AWESOME HAT</b>[R]24.99e",
    "[L]  + Size : 57/58",
    "[L]",
    "[C]--------------------------------",
    "[R]TOTAL PRICE :[R]34.98e",
    "[R]TAX :[R]4.23e",
    "[L]",
    "[C]================================",
    "[L]",
    "[L]<font size='big'>Customer :</font>",
    "[L]Raymond DUPONT",
    "[L]5 rue des girafes",
    "[L]31547 PERPETES",
    "[L]Tel : +33801201456",
  ];
  for (final text in texts) {
    print(EscCommand.encode(text));
  }
}
0
likes
160
points
43
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Helps you build raw base64 text to be printed by Epson dot matrix printers.

Repository (GitHub)
View/report issues

License

Apache-2.0 (license)

More

Packages that depend on escp_printer