DavBfr / dart_barcode

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

The generated data is incorrect #47

Closed LuodiJackShen closed 8 months ago

LuodiJackShen commented 2 years ago

I chose UPC-E format, the content is 02201904, but the final generation is 02201934, I hope to repair as soon as possible, thank you!

截屏2022-09-23 15 09 46
LuodiJackShen commented 2 years ago

upc-e '06503219' it had the same problem.

DavBfr commented 2 years ago

That's expected: UPC-E is designed to represent short versions of UPC-A. So you pass it an UPC-A code and the library will try to generate the UPC-E short version, and optionally fallback to the full UPC-A code if it can't.

LuodiJackShen commented 2 years ago

As you said, it actually provides a function to convert UPC-A to UPC-E, rather than allowing users to directly input the UPC-E code and generate the corresponding barcode. Is this misleading?

LuodiJackShen commented 2 years ago

We would like to see this library provide the ability to directly input the code for UPC-E and generate the corresponding barcode. Thank you very much!