print checker

This commit is contained in:
efrilm
2025-11-06 18:28:14 +07:00
parent bf7a5708f5
commit c0cf63a176
4 changed files with 136 additions and 27 deletions
@@ -136,6 +136,19 @@ class ReceiptComponentBuilder {
return bytes;
}
List<int> printerType({required String printerType}) {
List<int> bytes = [];
bytes += textCenter(
printerType,
bold: true,
height: PosTextSize.size1,
width: PosTextSize.size1,
);
return bytes;
}
/// Print date and time
List<int> dateTime(DateTime dateTime) {
return row2Columns(