barcode_generator 0.2.7
barcode_generator: ^0.2.7

Flutter Android iOS

A flutter package for barcode generator base on ZXing support multiple fortmats with PlatformView

barcode_generator #

Barcode generator base on ZXing support multiple fortmats with PlatformView

Note: This plugin is still under development, and some APIs might not be available yet. Feedback welcome and Pull Requests are most welcome!

Getting Started #

Check out the example directory for a sample app using Barcode generator.

BarcodeGenerator(
                witdth: 300,
                height: 200,
                backgroundColor: Colors.red,
                fromString: "xxxxxxxx",
                codeType: BarCodeType.kBarcodeFormatCode128,
              )

iOS Integration #

Opt-in to the embedded views preview by adding a boolean property to the app's Info.plist file with the key io.flutter.embedded_views_preview and the value YES.

<key>io.flutter.embedded_views_preview</key>
    <true/>

If you are getting error like this:

To opt into those targets generating module maps (which is necessary to import them from Swift when building as static libraries), you may set use_modular_headers! globally in your Podfile, or specify :modular_headers => true for particular dependencies.

Make sure you followed those steps:

Create a Bridging Header. If you've created the project using flutter create -i swift [projectName] you are all set. If not, you can enable Swift support by opening the project with XCode, then choose File -> New -> File -> Swift File. XCode will ask you if you wish to create Bridging Header, click yes.

Make sure you have !use_frameworks in the Runner block, in ios/Podfile

Do flutter clean

Go to your ios folder, delete Podfile.lock and Pods folder and then execute pod install --repo-update

Features #

  • [x] Generate barcode with multiple formats
  • [x] Supports adjusting the image's dimensions
  • [x] No internet connection required
  • [ ] Scanning barcode

Supported Formats #

1D product1D industrial2D
UPC-ACode 39QR Code
UPC-ECode 93Data Matrix
EAN-8Code 128Aztec (beta)
EAN-13CodabarPDF 417 (beta)
ITFMaxiCode
RSS-14
RSS-Expanded
5
likes
100
pub points
74%
popularity

A flutter package for barcode generator base on ZXing support multiple fortmats with PlatformView

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

loc.dx2903@gmail.com

License

Apache 2.0 (LICENSE)

Dependencies

flutter

More

Packages that depend on barcode_generator