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.
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.
93Compare - flutter_zxing
Barcode and QR code scanner and generator using Dart FFI and ZXing C++.
86Compare - qrscan
One-shot Flutter QR and barcode scanner using native camera APIs.
67Compare - scan
Scan QR codes and barcodes within the widget tree and decode images from file paths.
50Compare
Works with
Packages commonly used together with zxing_lib: ones it builds on, ones built on it, and its own family.
- intlzxing_lib depends on itA Dart library for internationalization and localization, providing message translation, plural/gender handling, and date/number formatting.
- charsetzxing_lib depends on itCharset encoding and decoding library for various text encodings in Dart.
- zxing_widgetBuilt on zxing_libBarcode generator widget for Flutter using ZXing Dart
- nitro_cameraBuilt on zxing_libHigh-performance camera plugin built on the Nitro FFI bridge with zero method-channel overhead.