andrey-ushakov/esc_pos_utils

Cannot print image full with mm80 paper size

Opened this issue · 2 comments

I'm facing issue when printing with image. I cannot print image with full size paper. If print text, it normally. In addition, printing image is interrupted (below image).

E4-F1449-D-9760-4-A73-85-D9-C38-C10834729

DxTa commented

I seems to got similar issue as well. @manucianvy97 have you got any further insight yet?

DxTa commented

Actually, I got it working.

It's quite important to have the image width correct. For me, I capture the screenshot to print and below code is used to represent my idea

Widget bodyPrintWidget(List<List<RowPrinterDetailRes>>? rows) {
    return Container(
        width: Helper.checkPaperSizeIs58mm() ? 360 : 530,
        child: Column(
          mainAxisSize: MainAxisSize.min,
          crossAxisAlignment: CrossAxisAlignment.start,
          children: printInvoiceBitmap(rows),
        )
    );
  }