DavBfr / dart_barcode

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

Inserting FNC1 into GS1-128 #13

Closed timothyjoelwright closed 4 years ago

timothyjoelwright commented 4 years ago

When creating USPS tracking barcodes using the GS1-128 format, how do I go about adding FNC1 in the correct position in the middle of the data? In a javascript library I'm migrating from, I would provide:

(420)10030(92001901755477000226559615)

Which seems to place FNC1 at each open parenthesis. This is the correct barcode for this example: Screen Shot 2020-06-10 at 7 25 13 PM

An explanation of the format: impb-example

DavBfr commented 4 years ago

What js library is it? I can implement the same kind of thing.

timothyjoelwright commented 4 years ago

Thank you for considering it! The library is bwip-js: https://github.com/metafloor/bwip-js

DavBfr commented 4 years ago

Please test the master branch using this in your pubspec.yaml:

dependency_overrides:
  barcode:
    git:
      url: git://github.com/DavBfr/dart_barcode
      path: barcode
timothyjoelwright commented 4 years ago

It works perfectly. Thank you so much!

DavBfr commented 4 years ago

Don't hesitate to Buy Me A Coffee.