fix printer
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user