Coder Social home page Coder Social logo

ihunterx / barcode_generator Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 18.0 3.38 MB

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

Home Page: https://pub.dartlang.org/packages/barcode_generator

License: Apache License 2.0

Kotlin 29.61% Ruby 11.71% Swift 29.24% Objective-C 1.66% Dart 25.95% Shell 1.83%
barcode-generator zxing-qrcode dart flutter-package mobile-app

barcode_generator's Introduction

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

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

Supported Formats

1D product 1D industrial 2D
UPC-A Code 39 QR Code
UPC-E Code 93 Data Matrix
EAN-8 Code 128 Aztec (beta)
EAN-13 Codabar PDF 417 (beta)
       | ITF           | MaxiCode
       |               | RSS-14
       |               | RSS-Expanded

barcode_generator's People

Contributors

ihunterx avatar kw2019ltd avatar madhukesh048 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

barcode_generator's Issues

Resizing barcodes

Hello so some reason it will not let me resize a barcode to set dimensions. 800 x 100 is a square. Also width is spelled incorrectly. unless i am using it incorrectly
child: Container(
width: 800,
height: 100,
child: BarcodeGenerator(
witdth: 800,
height: 100,
fromString: '\u00f3' + '1000000',
codeType: BarCodeType.kBarcodeFormatCode128,
),
),

Code 128 doesn't work in Android

Code 128 barcode can be generated in Android, however, it looks strange and can not be scanned successfully. In iOS Code 128 is working well, could you take a look? Thanks.

Kotlin gradle version is not up to date

"The Android Gradle plugin supports only Kotlin Gradle plugin version 1.3.10 and higher. The following dependencies do not satisfy the required version:
project ':barcode_generator' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.71"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.