fix print cut

This commit is contained in:
Efril 2026-03-01 12:28:00 +07:00
parent d34487d883
commit 457ed38827
2 changed files with 5 additions and 14 deletions

View File

@ -1412,9 +1412,7 @@ class PrintDataoutputs {
styles: const PosStyles(bold: false, align: PosAlign.center)); styles: const PosStyles(bold: false, align: PosAlign.center));
paper == 80 ? bytes += generator.feed(3) : bytes += generator.feed(1); paper == 80 ? bytes += generator.feed(3) : bytes += generator.feed(1);
//cut //cut
if (paper == 80) { bytes += generator.cut();
bytes += generator.cut();
}
return bytes; return bytes;
} }
@ -1544,9 +1542,7 @@ class PrintDataoutputs {
styles: const PosStyles(bold: false, align: PosAlign.center)); styles: const PosStyles(bold: false, align: PosAlign.center));
paper == 80 ? bytes += generator.feed(3) : bytes += generator.feed(1); paper == 80 ? bytes += generator.feed(3) : bytes += generator.feed(1);
//cut //cut
if (paper == 80) { bytes += generator.cut();
bytes += generator.cut();
}
return bytes; return bytes;
} }
@ -1710,10 +1706,7 @@ class PrintDataoutputs {
: '--------------------------------', : '--------------------------------',
styles: const PosStyles(bold: false, align: PosAlign.center)); styles: const PosStyles(bold: false, align: PosAlign.center));
paper == 80 ? bytes += generator.feed(3) : bytes += generator.feed(1); paper == 80 ? bytes += generator.feed(3) : bytes += generator.feed(1);
//cut bytes += generator.cut();
if (paper == 80) {
bytes += generator.cut();
}
return bytes; return bytes;
} }
@ -1833,9 +1826,7 @@ class PrintDataoutputs {
paper == 80 ? bytes += generator.feed(3) : bytes += generator.feed(2); paper == 80 ? bytes += generator.feed(3) : bytes += generator.feed(2);
if (paper == 80) { bytes += generator.cut();
bytes += generator.cut();
}
// Tambahkan ke allBytes // Tambahkan ke allBytes
allBytes += bytes; allBytes += bytes;

View File

@ -16,7 +16,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts # In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix. # of the product and file versions while build-number is used as the build suffix.
version: 1.0.4+14 version: 1.0.5+16
environment: environment:
sdk: ">=3.2.4 <4.0.0" sdk: ">=3.2.4 <4.0.0"