Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 1.38 KB

README.md

File metadata and controls

42 lines (29 loc) · 1.38 KB

ZXing Scanner(Dart)

pub package

A Barcode scanner Widget that can be embedded inside flutter. It uses zxing-dart for all platforms.

ZXing Dart pub package
ZXing Widget pub package
ZXing Scanner pub package

Features

  • ✅ Scan from camera (Supported Android,IOS, Web)*
  • ✅ Scan from Image file
  • Scan from camera need camera support for platform. and camera plugin now supported android,ios, and web. and on some mobile devices browsers there's error while fetch cameras. see camera fix for web

Getting started

flutter pub add zxing_scanner

Usage

See /example folder.

Scan from camera

ScanView(
    onResult: (List<Result> results),
),

Scan from image file

List<Result> results = await scanImage(await file.readAsBytes());

Additional information

This package depends on zxing_lib witch is a pure dart port of ZXing.