andrey-ushakov / esc_pos_utils

Basic Flutter/Dart classes for ESC/POS printing
BSD 3-Clause "New" or "Revised" License
151 stars 339 forks source link

When "textEncoded" is placed outside of "PosColumn," it prints normally. However, when it is placed inside "PosColumn," it prints as blank. #113

Open todosrc opened 1 year ago

todosrc commented 1 year ago
Uint8List encodeText = await TextEncoded('MF-47A ภาษาไทย');
bytes += generator.textEncoded(encodeText,styles: PosStyles(align: PosAlign.right, underline: true, codeTable: 'CP874'));
bytes += generator.qrcode('http://google.co.th',align: PosAlign.center ,size : QRSize.Size5 );

bytes += generator.row([
  PosColumn(
    containsChinese: false,
    textEncoded: encodeText,
    width: 8,
    styles: PosStyles(align: PosAlign.center, underline: true, codeTable: 'CP874'),
  ),
  PosColumn(
    containsChinese: false,
    text: '9999',
    width: 4,
    styles: PosStyles(align: PosAlign.center, underline: true),
  ),
]);

image

todosrc commented 1 year ago

@andrey-ushakov can you help on this ?