mobile_scanner
7.5.0, released 3 weeks ago by steenbakker.dev
Universal Flutter barcode and QR code scanner using native ML Kit, Vision, and ZXing.
WASM-readyRock solid
What it does
Scans barcodes and QR codes in real time using the device's camera across Android, iOS, macOS, and web. It supports customizable camera behavior, torch control, zoom, and multiple barcode formats.
AI-written summary of version 7.5.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to scan barcodes or QR codes in a Flutter application.
- You require cross-platform support across Android, iOS, macOS, and web.
- You want real-time detection with options for custom scan windows and torch management.
Skip it when
- You need general-purpose photo or video capture without barcode scanning requirements.
- You are targeting Linux or Windows desktop platforms.
Strengths
- Supports multiple platforms including Android, iOS, macOS, and web.
- Provides both simple widget usage and advanced controller configuration.
- Optimized performance using native ML Kit on Android and AVFoundation/Vision on iOS/macOS.
Weaknesses
- Does not support Linux or Windows desktop platforms.
- Web platform requires choosing between different detection backends with varying format support.
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 4
Requires adding camera and photo library usage permissions in Android and iOS configuration files, and enabling camera capability in Xcode for macOS.
MobileScanner(
onDetect: (result) {
print(result.barcodes.first.rawValue);
},
)Alternatives
Packages that do the same job and could replace mobile_scanner.
Works with
Packages commonly used together with mobile_scanner: ones it builds on, ones built on it, and its own family.
- webmobile_scanner depends on itLightweight bindings for browser APIs via JS interop
- plugin_platform_interfacemobile_scanner depends on itReusable base class for platform interfaces of Flutter federated plugins.
- ai_barcode_scannerBuilt on mobile_scannerFull-screen or embedded barcode and QR code scanner for Flutter built on mobile_scanner
- basf_flutter_componentsBuilt on mobile_scannerA BASF‑styled Flutter component library offering themes, widgets, and animations.