andriyoganp / blue_print_pos

Helper to use bluetooth print in Android and iOS
Apache License 2.0
34 stars 76 forks source link

Sometimes only QR code is getting, the texts above the QR code are not printed #83

Open HakiTaakGit opened 7 months ago

HakiTaakGit commented 7 months ago
final ReceiptSectionText receiptText = ReceiptSectionText();
final ReceiptSectionText receiptSecondText = ReceiptSectionText();
receiptText.addText(kioskCode);
receiptText.addSpacer(useDashed: true);
receiptText.addLeftRightText('Pharmacy', 'مقابل');
receiptText.addSpacer();
receiptText.addLeftRightText('Date: $appointmentDate', 'تاريخ');
receiptText.addSpacer();
receiptText.addLeftRightText('Time: $appointmentTime', 'الوقت');
receiptText.addSpacer();
receiptText.addLeftRightText('Token #:', 'الرمز #:');
receiptText.addSpacer();
receiptText.addText(cjNo, size: ReceiptTextSizeType.extraLarge);
receiptText.addSpacer();
receiptText.addText('MRN: $mrn');
receiptText.addSpacer();
await bluePrintPos.printReceiptText(receiptText, paperSize: PaperSize.mm80);
 await bluePrintPos.printQR(cjNo, size: 130);
receiptSecondText.addSpacer();
receiptSecondText.addText('Thank you for your preference');
await bluePrintPos.printReceiptText(receiptSecondText, feedCount: 1, useCut: true);

print

HakiTaakGit commented 7 months ago

Is there any fixes for this