zxing_lib 1.1.2 zxing_lib: ^1.1.2 copied to clipboard
A Dart port of zxing that encode and decode multiple 1D/2D barcodes, Supported qrcode, pdf417, oned, maxicode, datamatrix, aztec.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add zxing_lib
With Flutter:
$ flutter pub add zxing_lib
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
zxing_lib: ^1.1.2
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:zxing_lib/aztec.dart';
import 'package:zxing_lib/client.dart';
import 'package:zxing_lib/common.dart';
import 'package:zxing_lib/datamatrix.dart';
import 'package:zxing_lib/grayscale.dart';
import 'package:zxing_lib/maxicode.dart';
import 'package:zxing_lib/multi.dart';
import 'package:zxing_lib/oned.dart';
import 'package:zxing_lib/pdf417.dart';
import 'package:zxing_lib/qrcode.dart';
import 'package:zxing_lib/zxing.dart';