-
-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
expose method to return text with calculated checksum #19
Comments
A version with this is available in the master branch. use: final BarcodeEan ean13 = Barcode.ean13();
final value = ean13.normalize('453987234345'); |
tested all fine except upce , example try to normalize 1234567 result should be 12345670 but failing with print(Barcode.upcE().isValid("1234567")) -> print true BarcodeException: Unable to convert "1234567" to UPC E Barcode |
another example: 987456 when normalize it should be 09874565 print(Barcode.upcE().isValid("987456")) -> print true |
Yes, you have to use the fallback: print(Barcode.upcE(fallback: true).isValid("987456")) |
i think iam missing something, for UPCE now in barCodeWidget it display it as 05555550 but barcodeEan.normalize("555555") is failing on , why its not returning 05555550 ? BarcodeException: Unable to convert "555555" to UPC E Barcode |
@kw2019ltd Here is a fix which should work as expected now. |
now its working fine, can you release new ver thanks. |
Done. |
hi you create new ver in pub?
…On Thu, Aug 20, 2020 at 12:06 AM David PHAM-VAN ***@***.***> wrote:
Done.
Don't hesitate to Buy Me A Coffee <https://www.buymeacoffee.com/JORBmbw9h>
.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#19 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALJEI6WHXNDUJDGFLIF7HRDSBQ5FTANCNFSM4QAJX7DA>
.
|
@kw2019ltd it's already updated: https://pub.dev/packages/barcode/changelog |
Hi,
can you expose method for ITF/EAN/UPC codes, input is barcode text and return barcode text + (checksum) if input text dose not contain checksum.
The text was updated successfully, but these errors were encountered: