andrey-ushakov / esc_pos_utils

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

Print Code128. Am I code it wrong? #47

Open putera- opened 3 years ago

putera- commented 3 years ago

Am I code It wrong, because code type also printed. I need to only printed 002518276559 Please help

WhatsApp Image 2021-04-08 at 01 00 36

  /// CODE128
  ///
  /// k >= 2
  /// d: '{A'/'{B'/'{C' => '0'–'9', A–D, a–d, $, +, −, ., /, :
  /// usage:
  /// {A = QRCode type A
  /// {B = QRCode type B
  /// {C = QRCode type C
  /// barcodeData ex.: "{A978020137962".split("");

    final List<dynamic> barcdA = "{A002518276559".split("");
    final List<dynamic> barcdB = "{B002518276559".split("");
    final List<dynamic> barcdC = "{C002518276559".split("");

    ticket += generator.text("code128 A");
    ticket += generator.barcode(Barcode.code128(barcdA));
    ticket += generator.text("code128 B");
    ticket += generator.qrcode(Barcode.code128(barcdB));
    ticket += generator.text("code128 C");
    ticket += generator.qrcode(Barcode.code128(barcdC));
luismacalderon commented 3 years ago

You solved the problem, could you print codebar 128?

ozhankucuk commented 9 months ago

is there any solution?