DavBfr / dart_barcode

Barcode generation library
https://pub.dev/packages/barcode
Apache License 2.0
132 stars 41 forks source link

Barcode 128 wrong #46

Closed SomeCodingUser closed 1 year ago

SomeCodingUser commented 1 year ago

Hi,

I tried generating a barcode generating a barcode 128 with the data '053172STB' which generates the following barcode: image

Which is wrong according to other barcode generators and also the originial barcode which I tried to scan and regenerate. The barcode should look like this: image

Is this because I set the parameters useCode128A, etc. wrong (I tried playing around with them but didn't help) or is there a problem with the algorithm?

DavBfr commented 1 year ago

Yes, it's a bug.

DavBfr commented 1 year ago

Fixed in master branch.

If you want the exact same code, set useCode128A=false.

Don't hesitate to Buy Me A Coffee.