qr_code_scanner_plus
2.5.0, released 4 days ago by vespr.xyz
Embeddable QR code scanner view for Android, iOS, and Web.
What it does
Provides a platform view widget that embeds a QR code scanner into Flutter apps using zxing on Android, AVFoundation on iOS, and jsQR on Web. It exposes a controller to handle camera features like flash and flipping, and provides a stream of scanned barcode results.
AI-written summary of version 2.3.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to maintain an existing project that already relies on this package and want to postpone migration.
- You need an embedded QR scanner view for Android, iOS, or Web.
Skip it when
- You are starting a new project or require new features and long-term stability (the authors recommend mobile_scanner instead).
- You need advanced barcode formats other than QR codes on the web.
Strengths
- Supports multiple platforms (Android, iOS, Web).
- Provides a straightforward stream of scanned data and controller actions for flash and camera flipping.
- Zero third-party iOS dependencies using native AVFoundation.
Weaknesses
- It is a maintenance-only fork with no new features or API extensions planned.
- Android zxing native library is outdated and unmaintained with known native-level bugs.
- Web support is in an early stage with limitations on preview constraints and features like flash.
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 1
Requires adding CAMERA permission in AndroidManifest.xml, NSCameraUsageDescription in iOS Info.plist, and a JS script tag in web/index.html.
class _QRViewExampleState extends State<QRViewExample> {
final GlobalKey qrKey = GlobalKey(debugLabel: 'QR');
Barcode? result;
QRViewController? controller;
@override
Widget build(BuildContext context) {
return Scaffold(
body: QRView(
key: qrKey,
onQRViewCreated: _onQRViewCreated,
),
);
}
void _onQRViewCreated(QRViewController controller) {
this.controller = controller;
controller.scannedDataStream.listen((scanData) {
setState(() {
result = scanData;
});
});
}
}Alternatives
Packages that do the same job and could replace qr_code_scanner_plus.
- mobile_scanner
Actively maintained and recommended alternative for QR and barcode scanning with modern feature support and long-term stability.
95Compare
Works with
Packages commonly used together with qr_code_scanner_plus: ones it builds on, ones built on it, and its own family.