Skip to content
pubscout

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
$ flutter pub add mobile_scanner
Source repository

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.

  • camera

    Pick this if you need general camera preview and capture capabilities rather than dedicated barcode and QR scanning.

Works with

Packages commonly used together with mobile_scanner: ones it builds on, ones built on it, and its own family.