x_printer_thermal_web 0.0.1 copy "x_printer_thermal_web: ^0.0.1" to clipboard
x_printer_thermal_web: ^0.0.1 copied to clipboard

Platformweb

A package for printing thermal receipts on web using USB.

X Printer Thermal Web #

A package for printing thermal receipts on web using USB.

Usage #

main.dart #

Use html tags (such as: <p>, <h1>, <h2>, ... etc) to style the content you will print

final _printer = XPrinterThermalWeb();

void _onPrint() {
  var data = <String>[];
  data.add("<h1>This is a Header</h1>");
  for (var i = 0; i < 3; i++) {
    data.add("<p>data-$i</p>");
  }
  _printer.printHtmlString(data: data);
}

Driver #

if your thermal printer is not detected or you need a driver for your printer, you can download it through this link.

0
likes
140
points
20
downloads

Publisher

unverified uploader

Weekly Downloads

A package for printing thermal receipts on web using USB.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_web_plugins, plugin_platform_interface, web

More

Packages that depend on x_printer_thermal_web