bigship / barcode.flutter

barcode generate library for Flutter
BSD 2-Clause "Simplified" License
59 stars 27 forks source link

some barcode can not scan #2

Closed yusonchang closed 5 years ago

yusonchang commented 5 years ago

test to generate two barcode, the sencod can't not scan new BarCodeItem(type: BarCodeType.Code128, codeStr: "FS23030049234", description: "Code128", hasText: true), new BarCodeItem(type: BarCodeType.Code128, codeStr: "FS23030049MDUxMQ==", description: "Code128", hasText: true),

barcode

thanks~

mikuhl-dev commented 5 years ago

The character M is making a huge gap. Is this intentional? I am having problem scanning barcode's with an M character.

yusonchang commented 5 years ago

The character M is making a huge gap. Is this intentional? I am having problem scanning barcode's with an M character.

角色M正在形成巨大的差距。這是故意的嗎?我在掃描帶有M字符的條形碼時遇到問題。

fix barcode_painter.dart code128 M:0x400 change to 0x5d8 https://github.com/yusonchang/FlutterMemo/blob/master/Barcode/src/barcode_painter.dart

mikuhl-dev commented 5 years ago

@bigship There's a fix?

bigship commented 5 years ago

@yusonchang Seems you've solved this issue, thanks anyway. @MichaelPriebe yusongchang's solution is probably right. I didn't do much test, but it actually solved the 'M' character issue. I'll update the code.