fix print cut
This commit is contained in:
parent
d34487d883
commit
457ed38827
@ -1412,9 +1412,7 @@ class PrintDataoutputs {
|
||||
styles: const PosStyles(bold: false, align: PosAlign.center));
|
||||
paper == 80 ? bytes += generator.feed(3) : bytes += generator.feed(1);
|
||||
//cut
|
||||
if (paper == 80) {
|
||||
bytes += generator.cut();
|
||||
}
|
||||
bytes += generator.cut();
|
||||
|
||||
return bytes;
|
||||
}
|
||||
@ -1544,9 +1542,7 @@ class PrintDataoutputs {
|
||||
styles: const PosStyles(bold: false, align: PosAlign.center));
|
||||
paper == 80 ? bytes += generator.feed(3) : bytes += generator.feed(1);
|
||||
//cut
|
||||
if (paper == 80) {
|
||||
bytes += generator.cut();
|
||||
}
|
||||
bytes += generator.cut();
|
||||
|
||||
return bytes;
|
||||
}
|
||||
@ -1710,10 +1706,7 @@ class PrintDataoutputs {
|
||||
: '--------------------------------',
|
||||
styles: const PosStyles(bold: false, align: PosAlign.center));
|
||||
paper == 80 ? bytes += generator.feed(3) : bytes += generator.feed(1);
|
||||
//cut
|
||||
if (paper == 80) {
|
||||
bytes += generator.cut();
|
||||
}
|
||||
bytes += generator.cut();
|
||||
|
||||
return bytes;
|
||||
}
|
||||
@ -1833,9 +1826,7 @@ class PrintDataoutputs {
|
||||
|
||||
paper == 80 ? bytes += generator.feed(3) : bytes += generator.feed(2);
|
||||
|
||||
if (paper == 80) {
|
||||
bytes += generator.cut();
|
||||
}
|
||||
bytes += generator.cut();
|
||||
|
||||
// Tambahkan ke allBytes
|
||||
allBytes += bytes;
|
||||
|
||||
@ -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
|
||||
# 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.
|
||||
version: 1.0.4+14
|
||||
version: 1.0.5+16
|
||||
|
||||
environment:
|
||||
sdk: ">=3.2.4 <4.0.0"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user