Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributebarcode_scan2

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

pub.devRemove
zxing_lib

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

pub.devRemove
ScoresHealth93 (best)57
Maintenance95 (best)8
Quality100100
Popularity88 (best)69
Community80 (best)41
Compatibility100100
UsageDownloads (30 days)21k37k (best)
Likes307 (best)27
Pub points160 / 160160 / 160
GitHub stars98 (best)61
MaintenanceLatest release4.9.0, 9 days ago (best)1.1.4, a year ago
Major versions in 12 months00
Contributors38 (best)1
Publishermono0926.comshirne.com
FitPlatformsAndroid, iOSAll (pure Dart)
WASM-readyNoYes
KindPlugin (native code)Pure Dart
Code generationNoNo
Direct dependencies1 (best)2
LicenseMITAPACHE-2.0
Setup effortMediumLow
JudgementStrengths
  • Simple API with a single `BarcodeScanner.scan()` method call.
  • Built-in permission handling and flash control options.
  • 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
  • Relies on older underlying native libraries (MTBBarcodeScanner and barcodescanner).
  • Limited to full-screen scanning flows rather than embedded widget views.
  • Inferior decoding speed and accuracy compared to native packages.
  • Floating-point differences in Dart cause some test results to differ from original ZXing.
Warnings
  • Native setup
None
barcode_scan2 vs zxing_lib: which Flutter package should you use? | pubscout