A Barcode scanner Widget that can be embedded inside flutter. It uses zxing-dart for all platforms.
ZXing Dart | |
ZXing Widget | |
ZXing Scanner |
- ✅ 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
flutter pub add zxing_scanner
See /example
folder.
Scan from camera
ScanView(
onResult: (List<Result> results),
),
Scan from image file
List<Result> results = await scanImage(await file.readAsBytes());
This package depends on zxing_lib witch is a pure dart port of ZXing.