QR reader plugin using mobile vision API for Flutter.
Alternatives To Flutter_qr_mobile_vision
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Plugins16,7861,5566153 months ago58June 06, 20221bsd-3-clauseDart
Plugins for Flutter maintained by the Flutter team
Flutter Desktop Embedding7,0886a month ago10August 18, 20223apache-2.0C++
Experimental plugins for Flutter for Desktop
Go Flutter5,6322229a day ago76July 24, 202260bsd-3-clauseGo
Flutter on Windows, MacOS and Linux - based on Flutter Embedding, Go and GLFW.
Flutter Ui Nice3,424
16 days ago8Dart
More than 130+ pages in this beautiful app and more than 45 developers has contributed to it.
22 days ago24gpl-3.0TypeScript
Generate responsive pages and apps on HTML, Tailwind, Flutter and SwiftUI.
Sqflite2,62979913915 days ago125September 19, 2022154bsd-2-clauseDart
SQLite flutter plugin
Flutter_inappwebview2,5511468 hours ago51May 05, 2022721apache-2.0Dart
A Flutter plugin that allows you to add an inline webview, to use a headless webview, and to open an in-app browser window.
Flutter Study2,254
3 years ago5
Flutter Study
Flutter_local_notifications2,208108527 hours ago221September 23, 202232bsd-3-clauseDart
A Flutter plugin for displaying local notifications on Android, iOS, macOS and Linux
Flutter Intellij1,869
8 hours ago522bsd-3-clauseJava
Flutter Plugin for IntelliJ
Alternatives To Flutter_qr_mobile_vision
Select To Compare

Alternative Project Comparisons

QR Mobile Vision

pub package

Reading QR codes and other barcodes using Firebase's MLKit.

This plugin uses Android & iOS native APIs for reading images from the device's camera. It then pipes these images both to the MLKit Vision Barcode API which detects barcodes/qrcodes etc, and outputs a preview image to be shown on a flutter texture.

The plugin includes a widget which performs all needed transformations on the camera output to show within the defined area.

Android Models

With this new version of MLKit, there are two seperate models you can use to do the barcode scanning. Currently, this apk chooses to use the build-in model. This will increase your code size by ~2.2MB but will result in better scanning and won't require a seperate package to be downloaded in the background for barcode scanning to work properly.

You could also use the Google Play Services and tell your app to download it on install from the play store. See the instruction on the ml-kit barcode-scanning documentation page for android. You would also have to remove the com.google.mlkit:barcode-scanning dependency; this hasn't been tested but would probably go something like this:

configurations.all {
    exclude group: "com.google.mlkit", module:"barcode-scanning"
//  ...
dependencies {
  // ...
  // Use this dependency to use the dynamically downloaded model in Google Play Services
  implementation 'com.google.android.gms:play-services-mlkit-barcode-scanning:16.1.4'

Note that if you do this, you should tell your app to automatically download the model as in the above linked docs.MLKit

<application ...>
        android:value="barcode" />
    <!-- To use multiple models: android:value="barcode,model2,model3" -->

If this doesn't work for you please open an issue.

64 Bit Only on iOS

Unfortunately, Google has only released MLKit as a 64 bit binary. That means that this plugin and therefore your app don't support building or running on 32 bit. There were two possible approaches to dealing with this, but only one made it so that most users will be able to use the plugin easily.app

When you upgrade, if you are targeting a version of iOS before 11, you'll see a warning during the pod install and your app probably won't build (at least for release). That's because it'll be trying to build the 32-bit version and won't find the required files.

The easy way to solve this is by updating to build for iOS 11 and later. To do this:

  1. Add this line to your Podfile:
platform :ios, '11.0'
  1. (optional) Make sure your podfile sets build versions to 11 - if you see this at the bottom of your podfile make sure the line setting the deployment target to 11 is in there.
post_install do |installer|
    installer.pods_project.targets.each do |target|
        target.build_configurations.each do |config|
            config.build_settings['ENABLE_BITCODE'] = 'NO'
            config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0'
  1. Setting the iOS Deployment Target to 11 in XCode -> Runner -> Build Settings -> Deployment -> iOS Deployment Target.

Building for 64-bit before 11.0.

If you absolutely need to build for devices before 11.0, you might need to use an old version of the library that supports 32-bit. If you're willing to live without 32 bit but do need to target before 11.0, you can do that by ignoring the warning CocoaPods will give you, and setting XCode -> Runner -> Build Settings -> Architectures -> Architectures to ${ARCHS_STANDARD_64_BIT}.


See the example for how to use this plugin; it is the best resource available as it shows the plugin in use. However, these are the steps you need to take to use this plugin.

First, figure out the area that you want the camera preview to be shown in. This is important as the preview needs to have a constrained size or it won't be able to build. This is required due to the complex nature of the transforms needed to get the camera preview to show correctly on both iOS and Android, while still working with the screen rotated etc.

It may be possible to get the camera preview to work without putting it in a SizedBox or Container, but the recommended way is to put it in a SizedBox or Container.

You then need to include the package and instantiate the camera.

import 'package:qr_mobile_vision/qr_camera.dart';


new SizedBox(
  width: 300.0,
  height: 600.0,
  child: new QrCamera(
    qrCodeCallback: (code) {

The QrCodeCallback can do anything you'd like, and wil keep receiving QR codes until the camera is stopped.

There are also optional parameters to QrCamera.


Takes as parameter the flutter BoxFit. Setting this to different values should get the preview image to fit in different ways, but only BoxFit = cover has been tested extensively.


A callback that must return a widget if defined. This should build whatever you want to show up while the camera is loading (which can take from milliseconds to seconds depending on the device).


Widget that is shown on top of the QrCamera. If you give it a specific size it may cause weird issues so try not to.


Standard flutter key argument. Can be used to get QrCameraState with a GlobalKey.


Uses a camera of the specified direction. Default is to use BACK

These are the support types:



A callback that must return a widget if defined. This should build whatever you want to show up when the camera view is 'offscreen'. i.e. when the app is paused. May or may not show up in preview of app.


Callback for if there's an error.


A list of supported formats, all by default. If you use all, you shouldn't define any others.

These are the supported types:



Whether you want the front or the back camera to be used.

Toggle flash

When the camera is running, you can use the QrCamera.toggleFlash() or QrMobileVision.toggleFlash() methods to turn the flash on or off. A better solution is in the works for this, but I can't make a commitment for when I'll have time to finish it.

Push and Pop

If you push a new widget on top of a the current page using the navigator, the camera doesn't necessarily know about it.


Anyone wanting to contribute to this project is very welcome to! I'll take a look at PR's as soon as I can, and any bug reports are appreciated. I've only a few devices on which to test this so feedback about other devices is appreciated as well.

This has been tested on:

  • Nexus 5x
  • Nexus 4
  • Pixel 3a
  • iPhone 7
Popular Flutter Projects
Popular Plugin Projects
Popular User Interface Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Qr Code