Skip to content
pubscout

zxing_lib

1.1.4, released a year ago by shirne.com

A pure Dart port of ZXing to encode and decode multiple 1D and 2D barcodes.

WASM-ready
$ flutter pub add zxing_lib
Source repository

What it does

Provides a pure Dart implementation of the ZXing library to encode and decode various 1D and 2D barcode formats like QR code, PDF417, Data Matrix, and Aztec across all platforms without native dependencies.

AI-written summary of version 1.1.4, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need pure Dart barcode encoding and decoding for platforms like Web or Desktop where native plugins might not be ideal.
  • You want a barcode solution without depending on native platform SDKs.

Skip it when

  • You require high decoding speed and maximum accuracy on mobile devices, where native packages outperform this port.
  • You need real-time, high-performance scanning out-of-the-box.

Strengths

  • Pure Dart implementation with excellent cross-platform compatibility including Web and Desktop.
  • Supports encoding and decoding multiple barcode types (QR, PDF417, DataMatrix, Aztec, etc.).
  • No need to rely on native platform packages.

Weaknesses

  • Inferior decoding speed and accuracy compared to native packages.
  • Floating-point differences in Dart cause some test results to differ from original ZXing.

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
2

Not documented

Alternatives

Packages that do the same job and could replace zxing_lib.

  • barcode_scan2

    A flutter plugin for scanning 2D barcodes and QRCodes via camera.

  • flutter_zxing

    Barcode and QR code scanner and generator using Dart FFI and ZXing C++.

  • qrscan

    One-shot Flutter QR and barcode scanner using native camera APIs.

  • scan

    Scan QR codes and barcodes within the widget tree and decode images from file paths.

Works with

Packages commonly used together with zxing_lib: ones it builds on, ones built on it, and its own family.