Closed kkooi closed 2 years ago
.
I use print Image Bytes(bytes) uint8list but the image comes out with unknown characters nonstop.
I am using images print with printImageBytes and noticed that my printer can only handle certain ammound of data to be printed.
Therefore, I have splitted the object I am printing to multiple parts of print, each with its own parts to print ( I have actually imlemented 4 parts, each containing the widget, it's own controller and its own capture. Here's a simplified example ( no refactoring yet....):
var imgText1 = await screenshotController1.capture(pixelRatio: ratio) ?? Uint8List(0);
bluetooth.printImageBytes(imgText1);
var imgText2 = await screenshotController2.capture(pixelRatio: ratio) ?? Uint8List(0);
bluetooth.printImageBytes(imgText2);
var imgText3 = await screenshotController3.capture(pixelRatio: ratio) ?? Uint8List(0);
bluetooth.printImageBytes(imgText3);
var imgText4 = await screenshotController4.capture(pixelRatio: ratio) ?? Uint8List(0);
bluetooth.printImageBytes(imgText4);
bluetooth.printNewLine();
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
I use print Image Bytes(bytes) uint8list but the image comes out with unknown characters nonstop.