juliansteenbakker/mobile_scanner

A universal Flutter barcode and QR code scanner using CameraX/ML Kit for Android, AVFoundation/Apple Vision for iOS & macOS, and ZXing for web.

What it solves

This plugin provides a fast, lightweight way to add barcode and QR code scanning capabilities to Flutter applications. It handles the complexities of camera access and real-time image processing across multiple platforms, allowing developers to integrate scanning features without building low-level camera logic from scratch.

How it works

It uses a MobileScannerController to manage the device camera, handle real-time detection, and process barcode data. On Android, it leverages Google's MLKit; on iOS and macOS, it uses Apple's Vision framework; and on the web, it offers flexible backends including native browser APIs or WebAssembly-based libraries. Developers can customize the scanning window, toggle the torch, switch between different camera lenses, and handle app lifecycle events to ensure the scanner behaves correctly when the app is backgrounded.

Who it’s for

This tool is designed for Flutter developers building mobile or web applications that require barcode or QR code scanning functionality, such as inventory management, ticketing, or data entry apps.

Highlights

  • Fast, real-time barcode and QR code detection.
  • Cross-platform support for Android, iOS, macOS, and Web.
  • Advanced camera control, including lens switching and automatic best-lens selection for close-range scanning.
  • Highly customizable behavior, such as scan windows, torch control, and detection speed.
  • Multiple web backends to balance performance and compatibility across different browsers.

Related

  • Project
  • Project
  • Project
  • Project
  • Project