mlkit_scanner
0.7.0, released 9 months ago by dns-tech.ru
Flutter plugin to detect barcodes using Google MLKit API for Android and iOS
What it does
Provides a camera preview widget capable of scanning barcodes in real-time using Google MLKit. Exposes a controller to manage scanning parameters like flash, zoom, crop area, and detection delays.
AI-written summary of version 0.7.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need real-time barcode scanning using Google MLKit in a Flutter application.
- You want camera controls like zoom, flash toggling, and custom crop overlays for scanning.
Skip it when
- You only need simple static QR code generation without scanning.
- You need text, face, or object detection features that are not yet fully implemented or supported by this specific plugin.
Strengths
- Provides a ready-to-use widget with built-in camera controls and flash management.
- Supports configurable detection delay to optimize CPU consumption.
- Allows custom crop overlays and camera zoom.
Weaknesses
- The plugin is explicitly noted as under development, and some APIs might not be available yet.
- Documentation mentions detection of text, faces, and objects in the description, but only barcode scanning is shown in the API support table.
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 0
Requires adding NSCameraUsageDescription to ios/Runner/Info.plist and setting the minimum Android SDK version to 21 in android/app/build.gradle.
BarcodeScanner(
onScan: (barcode) {
// Do anything with the code.
},
)Alternatives
Packages that do the same job and could replace mlkit_scanner.
- mobile_scanner
A widely used and feature-rich alternative for scanning barcodes and QR codes.
95Compare - google_mlkit_barcode_scanning
Direct Google MLKit package for barcode scanning if you prefer decoupled camera implementation.
94Compare