Skip to content
pubscout

barcode_widget

2.0.4, released 4 years ago by nfet.net

Barcode generation widget for Flutter

WASM-ready
$ flutter pub add barcode_widget
Source repository

What it does

Provides a Flutter widget to generate and render standard barcodes directly in the UI. Supports customizing layout options like width, height, colors, margins, and padding, as well as handling validation errors.

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

Use it when

  • You need to display standard barcodes or QR codes in your Flutter UI
  • You want customizable barcode widgets with error handling and layout options

Skip it when

  • You need to scan barcodes using the device camera

Strengths

  • Easy to use as a standard Flutter widget
  • Supports multiple standard barcode types and layouts
  • Includes error handling and custom error builders

Weaknesses

  • Not documented for scanning barcodes

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1

not documented

BarcodeWidget(
  barcode: Barcode.code128(),
  data: 'Hello Flutter',
)

Alternatives

Packages that do the same job and could replace barcode_widget.

Works with

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