fix printer

This commit is contained in:
Efril
2026-05-24 00:59:02 +07:00
parent a0610459bf
commit c7ed45a374
8 changed files with 251 additions and 23 deletions
@@ -1,4 +1,5 @@
import 'package:esc_pos_utils_plus/esc_pos_utils_plus.dart';
import 'package:flutter/foundation.dart';
import 'package:intl/intl.dart';
/// Reusable component builder untuk thermal receipt printer
@@ -265,7 +266,11 @@ class ReceiptComponentBuilder {
height: PosTextSize.size1,
width: PosTextSize.size1,
);
if (kDebugMode) {
bytes += textCenter("$paperSize MM", );
}
bytes += feed(paperSize == 80 ? 3 : 1);
bytes += generator.cut();
return bytes;