diff --git a/lib/data/dataoutputs/print_dataoutputs.dart b/lib/data/dataoutputs/print_dataoutputs.dart index 2942578..e768b57 100644 --- a/lib/data/dataoutputs/print_dataoutputs.dart +++ b/lib/data/dataoutputs/print_dataoutputs.dart @@ -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; diff --git a/pubspec.yaml b/pubspec.yaml index 0b98b79..2ad1d59 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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"