v1.1.0
zxing_widget
A Barcode Generator Widget that can be embedded inside flutter. It uses zxing-dart for all platforms.
6Likes 1.9K30-day downloads150Pub points
AndroidiOSWebmacOSWindowsLinux
A Barcode Generator Widget that can be embedded inside flutter. It uses zxing-dart for all platforms
English project snapshot. Visit GitHub for the latest content.
A Barcode Generator Widget that can be embedded inside flutter. It uses zxing-dart for all platforms.
| ZXing Dart | |
| ZXing Widget | |
| ZXing Scanner |
flutter pub add zxing_widget
See /example folder.
Render a qrcode
BarcodeWidget(
QrcodePainter(
'qrcode data',
errorCorrectionLevel: ErrorCorrectionLevel.H,
foregroundColor: Colors.blue,
),
size: const Size(200, 200),
),
Generate an image
import 'dart:ui' as ui;
final ui.Image image = QrcodePainter(
'qrcode data',
errorCorrectionLevel: ErrorCorrectionLevel.H,
foregroundColor: Colors.blue,
).toImage(const Size(200, 200));
// binary png data
final binData = await image.toByteData(format: ui.ImageByteFormat.png);
This package depends on zxing_lib witch is a pure dart port of ZXing.
Dependency list 4 items
{"sdk":"flutter"}^1.0.0{"sdk":"flutter"}—Start with your use case, compare repository activity, and check the original project before adopting it.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗