Skip to content
pubscout

zxing_widget

1.1.0, released 3 years ago by shirne.com

Barcode generator widget for Flutter using ZXing Dart

WASM-ready
$ flutter pub add zxing_widget
Source repository

What it does

Provides a widget that renders various barcode types such as QRCode, PDF417, DataMatrix, AZTec, and OneDimension. It supports custom colors and a paint callback, and can convert the generated barcode to an image.

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

Use it when

  • You need to display barcodes in a Flutter UI
  • You want a single widget that supports multiple barcode formats
  • You need to customize barcode appearance or export it as an image

Skip it when

  • You need to scan barcodes from camera
  • You require advanced barcode generation options beyond those supported

Strengths

  • Supports multiple barcode formats
  • Easy to embed in UI
  • Customizable colors and paint callback
  • Can export to image

Weaknesses

  • No scanning functionality
  • Limited to formats listed in README
  • No advanced configuration options

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1

Add dependency in pubspec and import package

BarcodeWidget(
  QrcodePainter(
    'qrcode data',
    errorCorrectionLevel: ErrorCorrectionLevel.H,
    foregroundColor: Colors.blue,
  ),
  size: const Size(200, 200),
)

Alternatives

Packages that do the same job and could replace zxing_widget.

Works with

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