DavBfr / dart_barcode

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

dose the plugin support ITF16 #24

Closed kw2019ltd closed 3 years ago

kw2019ltd commented 3 years ago

hi, dose the plugin support ITF16 ?

image

image

DavBfr commented 3 years ago

I don't have this one. Do you have some documentation?

kw2019ltd commented 3 years ago

I don't have this one. Do you have some documentation?

hi could not find exactly it seems less popular , i found below it seems its similar to ITF14 only it support 16 digit.

https://docs.esko.com/docs/en-us/dynamicbarcodes-for-ai/12/userguide/en-us/common/bar/reference/re_bar_ITF-16.html https://www.han-soft.com/releases/barcode1d/documents/b_itf16.html

someone from UK send me attached image above and wrote to me : " ITF 16 is popular with amazon return labels which will see an increase in use"

if you can somehow add it and its not complex will be good.

DavBfr commented 3 years ago

It's implemented in the master branch. Don't hesitate to Buy Me A Coffee.

kw2019ltd commented 3 years ago

It's implemented in the master branch. Don't hesitate to Buy Me A Coffee.

sure thank you, i see build is failing can you have a look?

DavBfr commented 3 years ago

It's working now.

kw2019ltd commented 3 years ago

It's working now.

thanks can you release new version? or you want me to tested first?

DavBfr commented 3 years ago

Yes, if you can test it first, that would be awesome.

In your pubspec.yaml, set:

dependency_overrides:
  barcode:
    git:
      url: https://github.com/DavBfr/dart_barcode
      path: barcode
  barcode_widget:
    git:
      url: https://github.com/DavBfr/dart_barcode
      path: flutter

You'll need Flutter dev channel.

kw2019ltd commented 3 years ago

Yes, if you can test it first, that would be awesome.

In your pubspec.yaml, set:

dependency_overrides:
  barcode:
    git:
      url: https://github.com/DavBfr/dart_barcode
      path: barcode
  barcode_widget:
    git:
      url: https://github.com/DavBfr/dart_barcode
      path: flutter

You'll need Flutter dev channel.

not able to test it getting to many issues with dependency of flutter null check.

i see you migrate your code with null safety so not possible you can give a fix for old version without null safety

kw2019ltd commented 3 years ago

@DavBfr hi after refracting you did in itf base class creating itf14 not working

Barcode.itf14().isValid(text) return false , before it was working fine

image

image

image

kw2019ltd commented 3 years ago

before retracting checksum calculated automatically

image

image

image

DavBfr commented 3 years ago

Fixed in version 2.1.0

Don't hesitate to Buy Me A Coffee.