esc_pos_printer 0.9.1 copy "esc_pos_printer: ^0.9.1" to clipboard
esc_pos_printer: ^0.9.1 copied to clipboard

outdated

The library allows to print receipts using a ESC/POS (usually thermal) network printer. Supports Android and iOS.

example/example.dart

import 'package:esc_pos_printer/esc_pos_printer.dart';

void main() {
  Printer.connect('192.168.0.123').then((printer) {
    printer.println(PosString('Normal text'));
    printer.println(PosString('Bold text', bold: true));
    printer.println(PosString('Reverse text', reverse: true));
    printer.println(PosString('Underlined text', underline: true),
        linesAfter: 1);
    printer.println(PosString('Align left', align: PosTextAlign.left));
    printer.println(PosString('Align center', align: PosTextAlign.center));
    printer.println(PosString('Align right', align: PosTextAlign.right),
        linesAfter: 1);
    printer.printRow(
      [3, 6, 3],
      [
        PosString('col3', align: PosTextAlign.center, underline: true),
        PosString('col6', align: PosTextAlign.center, underline: true),
        PosString('col3', align: PosTextAlign.center, underline: true)
      ],
    );
    printer.println(PosString('Text size 200%',
        height: PosTextSize.size2, width: PosTextSize.size2));

    printer.cut();
    printer.disconnect();
  });
}
379
likes
40
pub points
96%
popularity

Publisher

verified publishertablemi.com

The library allows to print receipts using a ESC/POS (usually thermal) network printer. Supports Android and iOS.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

flutter, hex

More

Packages that depend on esc_pos_printer