qr_mobile_vision
6.0.3, released 2 months ago by an unverified publisher
Plugin for reading QR codes and barcodes using Mobile Vision APIs.
What it does
Reads QR codes and barcodes using Android and iOS native APIs via Firebase's MLKit/Mobile Vision. It pipes camera images to the barcode detection API while outputting a preview image onto a Flutter texture.
AI-written summary of version 6.0.3, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to scan QR codes or barcodes inside a Flutter widget
- You want a camera preview combined with real-time barcode scanning
Skip it when
- You need a general-purpose camera plugin without barcode scanning
- You are using a very old version of iOS below 15.5 and cannot upgrade
Strengths
- Includes a ready-to-use widget that performs necessary camera output transformations
- Supports multiple barcode formats including QR, Aztec, Code 128, and PDF417
Weaknesses
- Requires proper constrained sizing (like a SizedBox or Container) for the camera preview
- Flash toggling and navigation handling have some known limitations documented in the README
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 3
Requires ensuring compatible iOS version (15.5+) and handling native Android/iOS camera permissions.
new SizedBox(
width: 300.0,
height: 600.0,
child: new QrCamera(
qrCodeCallback: (code) {
// handle code
},
),
)Alternatives
Packages that do the same job and could replace qr_mobile_vision.
- mobile_scanner
Often preferred for active maintenance, multi-platform support, and easier configuration for barcode scanning.
95Compare - google_mlkit_barcode_scanning
Directly uses Google ML Kit without being tied to a specific camera preview widget implementation.
94Compare - qr_code_scanner_plus
Provides another alternative specifically focused on QR code and barcode scanning widgets.
94Compare
Works with
Packages commonly used together with qr_mobile_vision: ones it builds on, ones built on it, and its own family.
- plugin_platform_interfaceqr_mobile_vision depends on itReusable base class for platform interfaces of Flutter federated plugins.
- device_info_plusqr_mobile_vision depends on itProvides detailed information about the current device, make, model, and OS version.
- native_device_orientationqr_mobile_vision depends on itA Flutter plugin for reading native device orientation from UI or sensors.