sunmi_printer_easyticket
I have implemented a lot of other features described below, the typeface is bolder
I have updated version 1.0.7 with more features
Important:
THIS PACKAGE WILL WORK ONLY IN ANDROID! POSB68
xJump (n) linesxBold mode on/offxAdjustable font sizexCan print qrcodexUse SignikaNegative-Bold font as large fontxUse OpenSans-Bold font as large fontxSet font size 20 as center font size to separate two typefacesxCut paper - Dedicated method just to cut the line
Tested Devices
B68
import packages
import 'package:pos_ticket_b68/pos_ticket_b68.dart.dart';
await PosTicket.bindPrinterService();// Initialize the printer
## Example of printing a parking ticket
await PosTicket.bindPrinterService();/
await PosTicket.printText(
text: AppConst.addressConpany,
posFormatText: PosFormatText(
textSize: 18,
),
);
await PosTicket.printLine(3); // Jump (3) lines
## Example
await PosTicket.bindPrinterService();
await PosTicket.startPrinterExam();
## Example of printing qrcode
await PosTicket.bindPrinterService();
await PosTicket.setAlignment(1);
await PosTicket.printQr(
dataQRCode: "https://github.com/HVLoc",
modulesize: 20,
align: PosAlignment.ALIGN_CENTER,
);
await PosTicket.printLine(3);
## Set Font
await PosTicket.printText(
text: "DEFAULT",
posFormatText: PosFormatText(
textFont: PosTextFont.DEFAULT,
),
);