'Flutter ticket preview before printing

Tell me how you can preview the ticket before printing, I use a package to work with a thermo printer esc_pos_bluetooth, when generating a ticket for printing to a printer, I get a list of bytes (List), I used Image.memory() to create an image throws an error (Exception: Invalid image data).[this is an example of how I need to do it, here ссылка on where I found it] example



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source