esc_pos_utils
esc_pos_utils copied to clipboard
How to preview a ticket before printing
I found this example, can someone tell me how to do it
You can use the screenshot package, just show the widget, then capture and print it. for better usage of this package, you can also use the pos_printer_manager package.
steps to implement:
- create a widget for what you want to print.
- capture it as an image(uint8list)
- generate bytes
on click you can make new page and pass the value of the data and on that page you can make a button to print and navigate into the print page