A Fast QR Reader widget for Flutter. For both Android and iOS

Overview

Fast QR Reader View Plugin

See in pub

A Flutter plugin for iOS and Android allowing access to the device cameras to scan multiple type of codes (QR, PDF417, CODE39, etc). Heavily based on camera

Red box is a Flutter animation (removable). Low FPS due to GIF

Features:

  • Display live camera preview in a widget.
  • Uses native AVFoundation code detection in iOS
  • Uses ML Kit in Android

Installation

First, add fast_qr_reader_view as a dependency in your pubspec.yaml file.

iOS

Add a row to the ios/Runner/Info.plist with the key Privacy - Camera Usage Description and a usage description.

Or in text format add the key:

<key>NSCameraUsageDescription</key>
<string>Can I use the camera please?</string>

Android

Add Firebase to your project following this step (only that step, not the entire guide).

Change the minimum Android sdk version to 21 (or higher) in your android/app/build.gradle file.

minSdkVersion 21

Example

Here is a small example flutter app displaying a full screen camera preview.

import 'dart:async';
import 'package:flutter/material.dart';
import 'package:fast_qr_reader_view/fast_qr_reader_view.dart';

List<CameraDescription> cameras;

Future<Null> main() async {
  cameras = await availableCameras();
  runApp(new CameraApp());
}

class CameraApp extends StatefulWidget {
  @override
  _CameraAppState createState() => new _CameraAppState();
}

class _CameraAppState extends State<CameraApp> {
  QRReaderController controller;

  @override
  void initState() {
    super.initState();
    controller = new QRReaderController(cameras[0], ResolutionPreset.medium, [CodeFormat.qr], (dynamic value){
        print(value); // the result!
    // ... do something
    // wait 3 seconds then start scanning again.
    new Future.delayed(const Duration(seconds: 3), controller.startScanning);
    });
    controller.initialize().then((_) {
      if (!mounted) {
        return;
      }
      setState(() {});
      controller.startScanning();
    });
  }

  @override
  void dispose() {
    controller?.dispose();
    super.dispose();
  }

  @override
  Widget build(BuildContext context) {
    if (!controller.value.isInitialized) {
      return new Container();
    }
    return new AspectRatio(
        aspectRatio:
        controller.value.aspectRatio,
        child: new QRReaderPreview(controller));
  }
}

For a more elaborate usage example see here.

Note: This plugin is still under development, and some APIs might not be available yet. Feedback welcome and Pull Requests are most welcome!

Comments
  • Plugin crashes Android app when switching between apps

    Plugin crashes Android app when switching between apps

    Thanks for adding the ability to scan different barcodes. Works brilliantly! I've run into a bug that I hope us easy reproduce.

    1. Everything works perfectly on iOS
    2. On Android scanning works but when I tap on the overview button to switch apps (that's the button on the bottom on the right side) the example program crashes with the following error:

    F/libc (28681): Fatal signal 11 (SIGSEGV), code 1, fault addr 0x26780000 in tid 29800 (FirebaseMLHandl)


    I get a similar error when using the Android emulator:

    F/libc (14291): Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xabb36d70 in tid 14373 (FirebaseMLHandl), pid 14291 (yris.eddflutter)

    Let me know if I can be of any assistance!

    bug help wanted 
    opened by ghunter99 65
  • Why is firebase required for Android ?

    Why is firebase required for Android ?

    I have one question. Why is the firebase plugin required for this to work ?

    At the beginning it sounded suspicious, but after looking at your code i didn't find anything bad. So, i wanted to ask it first, why do i need it ?

    It could be a good thing to explain it on the homepage plugin and on the doc, for people who need the fastest app for critical applications (like me) and cannot add "junk" to the app without a real reason.

    Thanks

    opened by Nik99 17
  • Crash on permission response

    Crash on permission response

    Hi,

    First of all, thank you a lot for this library ! I was looking fur such a customizable QrCode reader in flutter :)

    I just want to make you know about a crash, in the example application, on Android, when we click on permission request dialog.

    Neither we click on "accept" or "deny", we got :

    FATAL EXCEPTION: main
    E/AndroidRuntime(19537): Process: co.apperto.fastqrreaderviewexample, PID: 19537
    E/AndroidRuntime(19537): java.lang.RuntimeException: Failure delivering result ResultInfo{who=@android:requestPermissions:, request=513469796, result=-1, data=Intent { act=android.content.pm.action.REQUEST_PERMISSIONS (has extras) }} to activity {co.apperto.fastqrreaderviewexample/co.apperto.fastqrreaderviewexample.MainActivity}: java.lang.NullPointerException: Attempt to invoke interface method 'void java.lang.Runnable.run()' on a null object reference
    E/AndroidRuntime(19537): 	at android.app.ActivityThread.deliverResults(ActivityThread.java:4360)
    E/AndroidRuntime(19537): 	at android.app.ActivityThread.handleSendResult(ActivityThread.java:4402)
    E/AndroidRuntime(19537): 	at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:49)
    E/AndroidRuntime(19537): 	at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
    E/AndroidRuntime(19537): 	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
    E/AndroidRuntime(19537): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1808)
    E/AndroidRuntime(19537): 	at android.os.Handler.dispatchMessage(Handler.java:106)
    E/AndroidRuntime(19537): 	at android.os.Looper.loop(Looper.java:193)
    E/AndroidRuntime(19537): 	at android.app.ActivityThread.main(ActivityThread.java:6669)
    E/AndroidRuntime(19537): 	at java.lang.reflect.Method.invoke(Native Method)
    E/AndroidRuntime(19537): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
    E/AndroidRuntime(19537): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
    E/AndroidRuntime(19537): Caused by: java.lang.NullPointerException: Attempt to invoke interface method 'void java.lang.Runnable.run()' on a null object reference
    E/AndroidRuntime(19537): 	at co.apperto.fastqrreaderview.FastQrReaderViewPlugin$CameraRequestPermissionsListener.onRequestPermissionsResult(FastQrReaderViewPlugin.java:330)
    E/AndroidRuntime(19537): 	at io.flutter.app.FlutterPluginRegistry.onRequestPermissionsResult(FlutterPluginRegistry.java:203)
    E/AndroidRuntime(19537): 	at io.flutter.app.FlutterActivityDelegate.onRequestPermissionsResult(FlutterActivityDelegate.java:127)
    E/AndroidRuntime(19537): 	at io.flutter.app.FlutterActivity.onRequestPermissionsResult(FlutterActivity.java:137)
    E/AndroidRuntime(19537): 	at android.app.Activity.dispatchRequestPermissionsResult(Activity.java:7608)
    E/AndroidRuntime(19537): 	at android.app.Activity.dispatchActivityResult(Activity.java:7458)
    E/AndroidRuntime(19537): 	at android.app.ActivityThread.deliverResults(ActivityThread.java:4353)
    

    I tried to understand what causes it in Android plugin but found nothing :/

    help wanted good first issue 
    opened by ThomasEcalle 10
  • Needs to be migrated to AndroidX.

    Needs to be migrated to AndroidX.

    /Users/philipneves/flutter/.pub-cache/hosted/pub.dartlang.org/fast_qr_reader_view-0.1.5/android/src/main/java/co/apperto/fastqrreaderview/java/VisionProcessorBase.java:18: error: package android.support.annotation does not exist import android.support.annotation.NonNull;
    ^
    /Users/philipneves/flutter/.pub-cache/hosted/pub.dartlang.org/fast_qr_reader_view-0.1.5/android/src/main/java/co/apperto/fastqrreaderview/java/barcodescanning/BarcodeScanningProcessor.java:16: error: package android.support.annotation does not exist import android.support.annotation.NonNull;
    ^
    /Users/philipneves/flutter/.pub-cache/hosted/pub.dartlang.org/fast_qr_reader_view-0.1.5/android/src/main/java/co/apperto/fastqrreaderview/common/CameraSource.java:25: error: package android.support.annotation does not exist import android.support.annotation.Nullable;
    ^
    /Users/philipneves/flutter/.pub-cache/hosted/pub.dartlang.org/fast_qr_reader_view-0.1.5/android/src/main/java/co/apperto/fastqrreaderview/common/CameraSource.java:26: error: package android.support.annotation does not exist import android.support.annotation.RequiresPermission;
    ^
    /Users/philipneves/flutter/.pub-cache/hosted/pub.dartlang.org/fast_qr_reader_view-0.1.5/android/src/main/java/co/apperto/fastqrreaderview/FastQrReaderViewPlugin.java:18: error: package android.support.annotation does not exist import android.support.annotation.NonNull;
    ^
    /Users/philipneves/flutter/.pub-cache/hosted/pub.dartlang.org/fast_qr_reader_view-0.1.5/android/src/main/java/co/apperto/fastqrreaderview/FastQrReaderViewPlugin.java:19: error: package android.support.annotation does not exist import android.support.annotation.Nullable;
    ^
    /Users/philipneves/flutter/.pub-cache/hosted/pub.dartlang.org/fast_qr_reader_view-0.1.5/android/src/main/java/co/apperto/fastqrreaderview/java/VisionProcessorBase.java:133: error: cannot find symbol @NonNull T results,
    ^
    symbol: class NonNull
    location: class VisionProcessorBase
    where T is a type-variable:
    T extends Object declared in class VisionProcessorBase
    /Users/philipneves/flutter/.pub-cache/hosted/pub.dartlang.org/fast_qr_reader_view-0.1.5/android/src/main/java/co/apperto/fastqrreaderview/java/VisionProcessorBase.java:134: error: cannot find symbol @NonNull FrameMetadata frameMetadata);//,
    ^
    symbol: class NonNull
    location: class VisionProcessorBase
    where T is a type-variable:
    T extends Object declared in class VisionProcessorBase
    /Users/philipneves/flutter/.pub-cache/hosted/pub.dartlang.org/fast_qr_reader_view-0.1.5/android/src/main/java/co/apperto/fastqrreaderview/java/VisionProcessorBase.java:137: error: cannot find symbol protected abstract void onFailure(@NonNull Exception e);
    ^
    symbol: class NonNull
    location: class VisionProcessorBase
    where T is a type-variable:
    T extends Object declared in class VisionProcessorBase
    /Users/philipneves/flutter/.pub-cache/hosted/pub.dartlang.org/fast_qr_reader_view-0.1.5/android/src/main/java/co/apperto/fastqrreaderview/java/barcodescanning/BarcodeScanningProcessor.java:78: error: cannot find symbol @NonNull List barcodes,
    ^
    symbol: class NonNull
    location: class BarcodeScanningProcessor
    /Users/philipneves/flutter/.pub-cache/hosted/pub.dartlang.org/fast_qr_reader_view-0.1.5/android/src/main/java/co/apperto/fastqrreaderview/java/barcodescanning/BarcodeScanningProcessor.java:79: error: cannot find symbol @NonNull FrameMetadata frameMetadata) { //,
    ^
    symbol: class NonNull
    location: class BarcodeScanningProcessor
    /Users/philipneves/flutter/.pub-cache/hosted/pub.dartlang.org/fast_qr_reader_view-0.1.5/android/src/main/java/co/apperto/fastqrreaderview/java/barcodescanning/BarcodeScanningProcessor.java:93: error: cannot find symbol protected void onFailure(@NonNull Exception e) {
    ^
    symbol: class NonNull
    location: class BarcodeScanningProcessor
    /Users/philipneves/flutter/.pub-cache/hosted/pub.dartlang.org/fast_qr_reader_view-0.1.5/android/src/main/java/co/apperto/fastqrreaderview/common/CameraSource.java:159: error: cannot find symbol @RequiresPermission(Manifest.permission.CAMERA)
    ^
    symbol: class RequiresPermission
    location: class CameraSource
    /Users/philipneves/flutter/.pub-cache/hosted/pub.dartlang.org/fast_qr_reader_view-0.1.5/android/src/main/java/co/apperto/fastqrreaderview/common/CameraSource.java:186: error: cannot find symbol @RequiresPermission(Manifest.permission.CAMERA)
    ^
    symbol: class RequiresPermission
    location: class CameraSource
    /Users/philipneves/flutter/.pub-cache/hosted/pub.dartlang.org/fast_qr_reader_view-0.1.5/android/src/main/java/co/apperto/fastqrreaderview/common/CameraSource.java:402: error: cannot find symbol @Nullable Camera.Size pictureSize) {
    ^
    symbol: class Nullable
    location: class SizePair
    /Users/philipneves/flutter/.pub-cache/hosted/pub.dartlang.org/fast_qr_reader_view-0.1.5/android/src/main/java/co/apperto/fastqrreaderview/common/CameraSource.java:413: error: cannot find symbol @Nullable
    ^
    symbol: class Nullable
    location: class SizePair
    /Users/philipneves/flutter/.pub-cache/hosted/pub.dartlang.org/fast_qr_reader_view-0.1.5/android/src/main/java/co/apperto/fastqrreaderview/FastQrReaderViewPlugin.java:263: error: cannot find symbol void startScanning(@NonNull Result result) {
    ^
    symbol: class NonNull
    location: class FastQrReaderViewPlugin
    /Users/philipneves/flutter/.pub-cache/hosted/pub.dartlang.org/fast_qr_reader_view-0.1.5/android/src/main/java/co/apperto/fastqrreaderview/FastQrReaderViewPlugin.java:329: error: cannot find symbol void stopScanning(@NonNull Result result) {
    ^
    symbol: class NonNull
    location: class FastQrReaderViewPlugin
    /Users/philipneves/flutter/.pub-cache/hosted/pub.dartlang.org/fast_qr_reader_view-0.1.5/android/src/main/java/co/apperto/fastqrreaderview/FastQrReaderViewPlugin.java:392: error: cannot find symbol QrReader(final String cameraName, final String resolutionPreset, final ArrayList formats, @NonNull final Result result) { ^ symbol: class NonNull
    location: class FastQrReaderViewPlugin.QrReader
    /Users/philipneves/flutter/.pub-cache/hosted/pub.dartlang.org/fast_qr_reader_view-0.1.5/android/src/main/java/co/apperto/fastqrreaderview/FastQrReaderViewPlugin.java:563: error: cannot find symbol private void open(@Nullable final Result result) {
    ^
    symbol: class Nullable
    location: class FastQrReaderViewPlugin.QrReader
    /Users/philipneves/flutter/.pub-cache/hosted/pub.dartlang.org/fast_qr_reader_view-0.1.5/android/src/main/java/co/apperto/fastqrreaderview/java/VisionProcessorBase.java:116: error: cannot find symbol public void onFailure(@NonNull Exception e) { ^
    symbol: class NonNull
    Note: /Users/philipneves/flutter/.pub-cache/hosted/pub.dartlang.org/fast_qr_reader_view-0.1.5/android/src/main/java/co/apperto/fastqrreaderview/common/CameraSource.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details.
    21 errors

    FAILURE: Build failed with an exception.

    • What went wrong:
      Execution failed for task ':fast_qr_reader_view:compileDebugJavaWithJavac'.

    Compilation failed; see the compiler error output for details.

    • Try:
      Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

    • Get more help at https://help.gradle.org

    BUILD FAILED in 4s
    Running Gradle task 'assembleDebug'...
    Running Gradle task 'assembleDebug'... Done 5.0s


    The Gradle failure may have been because of AndroidX incompatibilities in this Flutter app. See https://goo.gl/CP92wY for more information on the problem and how to fix it.


    Gradle task assembleDebug failed with exit code 1

    opened by pneves001 10
  • Works Great On iOS but many dependency errors building APK on Android

    Works Great On iOS but many dependency errors building APK on Android

    Flutter Doctor:

    Doctor summary (to see all details, run flutter doctor -v):
    [✓] Flutter (Channel beta, v1.11.0, on Mac OS X 10.15.1 19B88, locale en-US)
     
    [✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    [✓] Xcode - develop for iOS and macOS (Xcode 11.2.1)
    [✓] Android Studio (version 3.4)
    [✓] VS Code (version 1.40.2)
    [✓] Connected device (2 available)
    
    • No issues found!
    

    Error from Debug Console:

    Dependency failing: com.google.android.gms:play-services-vision-image-label:17.0.2 -> com.google.android.gms:play-servic
    es-vision-common@[17.0.2], but play-services-vision-common version was 18.0.0.
    
    The following dependencies are project dependencies that are direct or have transitive dependencies that lead to the art
    ifact with the issue.
    -- Project 'app' depends on project 'firebase_ml_vision' which depends onto com.google.firebase:[email protected].
    0
    -- Project 'app' depends onto com.google.android.gms:play-services-vision@{strictly 18.0.0}
    -- Project 'app' depends on project 'fast_qr_reader_view' which depends onto com.google.firebase:[email protected]
    .1
    -- Project 'app' depends onto com.google.firebase:firebase-ml-vision@{strictly 20.0.0}
    -- Project 'app' depends onto com.google.android.gms:play-services-vision-image-label@{strictly 17.0.2}
    -- Project 'app' depends onto com.google.android.gms:play-services-vision-common@{strictly 18.0.0}
    
    For extended debugging info execute Gradle from the command line with ./gradlew --info :app:assembleDebug to see the dep
    endency paths to the artifact. This error message came from the google-services Gradle plugin, report issues at https://
    github.com/google/play-services-plugins and disable by adding "googleServices { disableVersionCheck = false }" to your b
    uild.gradle file.
    
    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    
    * Get more help at https://help.gradle.org
    
    BUILD FAILED in 15sGradle task assembleDebug failed with exit code 1 
    

    Thanks for any direction on this issue.

    opened by daveparks23 6
  • Error building APK in release mode

    Error building APK in release mode

    Execution failed for task ':fast_qr_reader_view:verifyReleaseResources'.

    java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed \build\fast_qr_reader_view\intermediates\res\merged\release\values\values.xml:276: error: resource android:attr/fontVariationSettings not found. \build\fast_qr_reader_view\intermediates\res\merged\release\values\values.xml:277: error: resource android:attr/ttcIndex not found. error: failed linking references.

    bug 
    opened by allanwolski 6
  • Exception: FirebaseApp is not initialized

    Exception: FirebaseApp is not initialized

    Hello, I have an issue with the initialization of the plugin. I receive the following exception when I call

    _controller.initialize()

    Here is the Exception

    QRReaderException(error, Default FirebaseApp is not initialized in this process eu.ekinnolab.navipay.navipayflutter. Make sure to call FirebaseApp.initializeApp(Context) first.)

    There is no information about calling this init method on the Android side.

    Here is the full stacktrace:

    E/MethodChannel#fast_qr_reader_view(23961): Failed to handle method call E/MethodChannel#fast_qr_reader_view(23961): java.lang.IllegalStateException: Default FirebaseApp is not initialized in this process eu.ekinnolab.navipay.navipayflutter. Make sure to call FirebaseApp.initializeApp(Context) first. E/MethodChannel#fast_qr_reader_view(23961): at com.google.firebase.FirebaseApp.getInstance(com.google.firebase:firebase-common@@16.0.2:240) E/MethodChannel#fast_qr_reader_view(23961): at com.google.firebase.ml.vision.FirebaseVision.getInstance(Unknown Source:1) E/MethodChannel#fast_qr_reader_view(23961): at co.apperto.fastqrreaderview.java.barcodescanning.BarcodeScanningProcessor.<init>(BarcodeScanningProcessor.java:55) E/MethodChannel#fast_qr_reader_view(23961): at co.apperto.fastqrreaderview.FastQrReaderViewPlugin$QrReader.open(FastQrReaderViewPlugin.java:570) E/MethodChannel#fast_qr_reader_view(23961): at co.apperto.fastqrreaderview.FastQrReaderViewPlugin$QrReader.access$1400(FastQrReaderViewPlugin.java:342) E/MethodChannel#fast_qr_reader_view(23961): at co.apperto.fastqrreaderview.FastQrReaderViewPlugin$QrReader$1.run(FastQrReaderViewPlugin.java:471) E/MethodChannel#fast_qr_reader_view(23961): at co.apperto.fastqrreaderview.FastQrReaderViewPlugin$QrReader.<init>(FastQrReaderViewPlugin.java:476) E/MethodChannel#fast_qr_reader_view(23961): at co.apperto.fastqrreaderview.FastQrReaderViewPlugin.onMethodCall(FastQrReaderViewPlugin.java:213) E/MethodChannel#fast_qr_reader_view(23961): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:200) E/MethodChannel#fast_qr_reader_view(23961): at io.flutter.view.FlutterNativeView.handlePlatformMessage(FlutterNativeView.java:163) E/MethodChannel#fast_qr_reader_view(23961): at android.os.MessageQueue.nativePollOnce(Native Method) E/MethodChannel#fast_qr_reader_view(23961): at android.os.MessageQueue.next(MessageQueue.java:325) E/MethodChannel#fast_qr_reader_view(23961): at android.os.Looper.loop(Looper.java:142) E/MethodChannel#fast_qr_reader_view(23961): at android.app.ActivityThread.main(ActivityThread.java:6494) E/MethodChannel#fast_qr_reader_view(23961): at java.lang.reflect.Method.invoke(Native Method) E/MethodChannel#fast_qr_reader_view(23961): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438) E/MethodChannel#fast_qr_reader_view(23961): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)

    opened by rmkubala 6
  • Half green screen

    Half green screen

    After running flutter upgrade, the half of the screen turned green.

    This occurs on the beta and master channel.

    Doctor summary (to see all details, run flutter doctor -v): [√] Flutter (Channel dev, v0.10.2, on Microsoft Windows [versão 10.0.17134.345], locale pt-BR) [√] Android toolchain - develop for Android devices (Android SDK 28.0.3) [√] Android Studio (version 3.2) [√] Connected device (1 available)

    • No issues found!

    screenshot_20181107-212618

    opened by allanwolski 6
  • Dependency issue importing library

    Dependency issue importing library

    FAILURE: Build failed with an exception.
    * What went wrong:
    Failed to capture snapshot of input files for task ':app:preDebugBuild' property 'compileManifests' during up-to-date check.
    > The library com.google.android.gms:play-services-auth-base is being requested by various other libraries at [[15.0.1,15.0.1]], but resolves to 15.1.0. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies.
    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    * Get more help at https://help.gradle.org
    BUILD FAILED in 1s
    Gradle task assembleDebug failed with exit code 1
    

    This seems to be related to google_sign_in: ^3.2.2 which is also in the pubspec of your project. I could not find where the play-services-auth-base version is specified.

    opened by martflu 6
  • Barcode format ?

    Barcode format ?

    Hi, what format do we have to use for regular groceries barcode ? I tried code39, code128 and code93 cannot read the barcode

    Thanks,

    PS for QR code works flawlessly

    Permission problem @start, after allowed, it will crash, and next time app works fine, any issue on this?

    opened by x4080 5
  • App Crashes on launch

    App Crashes on launch

    I've created a POC for QR code reader, but it keeps crashing when app launch.

    Flutter doctor :

    D:\Flutter_Work_Space\fast_qr_code_demo\fast_qr_code_demo>flutter doctor -v [√] Flutter (Channel stable, v1.12.13+hotfix.5, on Microsoft Windows [Version 10.0.10240], locale en-US) • Flutter version 1.12.13+hotfix.5 at D:\Flutter_Code_Backup\flutter_windows_v1.12.13+hotfix.5-stable\flutter • Framework revision 27321ebbad (5 weeks ago), 2019-12-10 18:15:01 -0800 • Engine revision 2994f7e1e6 • Dart version 2.7.0

    [√] Android toolchain - develop for Android devices (Android SDK version 29.0.1) • Android SDK at C:\Users\admin\AppData\Local\Android\sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-29, build-tools 29.0.1 • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01) • All Android licenses accepted.

    [√] Android Studio (version 3.4) • Android Studio at C:\Program Files\Android\Android Studio • Flutter plugin version 39.0.1 • Dart plugin version 183.6270 • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)

    [√] VS Code (version 1.41.0) • VS Code at C:\Users\admin\AppData\Local\Programs\Microsoft VS Code • Flutter extension version 3.7.0

    [√] Connected device (1 available) • SM G570F • 42006e4bc67493b3 • android-arm • Android 8.0.0 (API 26)

    • No issues found!


    Crash Details :

    2020-01-14 11:37:01.689 18432-18432/com.fast_qr_code_demo E/AndroidRuntime: FATAL EXCEPTION: main Process: com.fast_qr_code_demo, PID: 18432 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.fast_qr_code_demo/com.fast_qr_code_demo.MainActivity}: java.lang.UnsupportedOperationException: The new embedding does not support the old FlutterView. at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2957) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3032) at android.app.ActivityThread.-wrap11(Unknown Source:0) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1696) at android.os.Handler.dispatchMessage(Handler.java:105) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:6942) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374) Caused by: java.lang.UnsupportedOperationException: The new embedding does not support the old FlutterView. at io.flutter.embedding.engine.plugins.shim.ShimRegistrar.view(ShimRegistrar.java:82) at co.apperto.fastqrreaderview.FastQrReaderViewPlugin.registerWith(FastQrReaderViewPlugin.java:168) at io.flutter.plugins.GeneratedPluginRegistrant.registerWith(GeneratedPluginRegistrant.java:17) at com.fast_qr_code_demo.MainActivity.configureFlutterEngine(MainActivity.kt:10) at io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.onAttach(FlutterActivityAndFragmentDelegate.java:185) at io.flutter.embedding.android.FlutterActivity.onCreate(FlutterActivity.java:418) at android.app.Activity.performCreate(Activity.java:7183) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1221)

    opened by RahulDevCodiant 4
  • Cannot scan QRcode high version

    Cannot scan QRcode high version

    Hi,

    Do we have any limitation of QR code version? I tried with some QRcode high version but it cannot scan. e.g. i tried with version 25 - 40 in this link https://en.wikipedia.org/wiki/QR_code#Storage

    opened by QuangAnh84 2
  • error when running app

    error when running app

    duplicate symbol 'OBJC_IVAR$_FLTCam._captureVideoOutput' in: /Users/Raymond Tucker/Downloads/user-master 2/build/ios/Debug-iphoneos/camera/libcamera.a(CameraPlugin.o) /Users/Raymond Tucker/Downloads/user-master 2/build/ios/Debug-iphoneos/fast_qr_reader_view/libfast_qr_reader_view.a(FastQrReaderViewPlugin.o) duplicate symbol 'OBJC_IVAR$_FLTCam._videoWriterInput' in: /Users/Raymond Tucker/Downloads/user-master 2/build/ios/Debug-iphoneos/camera/libcamera.a(CameraPlugin.o) /Users/Raymond Tucker/Downloads/user-master 2/build/ios/Debug-iphoneos/fast_qr_reader_view/libfast_qr_reader_view.a(FastQrReaderViewPlugin.o) duplicate symbol 'OBJC_IVAR$_FLTCam._captureVideoInput' in: /Users/Raymond Tucker/Downloads/user-master 2/build/ios/Debug-iphoneos/camera/libcamera.a(CameraPlugin.o) /Users/Raymond Tucker/Downloads/user-master 2/build/ios/Debug-iphoneos/fast_qr_reader_view/libfast_qr_reader_view.a(FastQrReaderViewPlugin.o) duplicate symbol 'OBJC_IVAR$_FLTCam._assetWriterPixelBufferAdaptor' in: /Users/Raymond Tucker/Downloads/user-master 2/build/ios/Debug-iphoneos/camera/libcamera.a(CameraPlugin.o) /Users/Raymond Tucker/Downloads/user-master 2/build/ios/Debug-iphoneos/fast_qr_reader_view/libfast_qr_reader_view.a(FastQrReaderViewPlugin.o) duplicate symbol 'OBJC_IVAR$_FLTCam._videoWriter' in: /Users/Raymond Tucker/Downloads/user-master 2/build/ios/Debug-iphoneos/camera/libcamera.a(CameraPlugin.o) /Users/Raymond Tucker/Downloads/user-master 2/build/ios/Debug-iphoneos/fast_qr_reader_view/libfast_qr_reader_view.a(FastQrReaderViewPlugin.o) duplicate symbol 'OBJC_IVAR$_FLTCam._latestPixelBuffer' in: /Users/Raymond Tucker/Downloads/user-master 2/build/ios/Debug-iphoneos/camera/libcamera.a(CameraPlugin.o) /Users/Raymond Tucker/Downloads/user-master 2/build/ios/Debug-iphoneos/fast_qr_reader_view/libfast_qr_reader_view.a(FastQrReaderViewPlugin.o) duplicate symbol 'OBJC_IVAR$_FLTCam._captureSession' in: /Users/Raymond Tucker/Downloads/user-master 2/build/ios/Debug-iphoneos/camera/libcamera.a(CameraPlugin.o) /Users/Raymond Tucker/Downloads/user-master 2/build/ios/Debug-iphoneos/fast_qr_reader_view/libfast_qr_reader_view.a(FastQrReaderViewPlugin.o) duplicate symbol 'OBJC_CLASS$_FLTCam' in: /Users/Raymond Tucker/Downloads/user-master 2/build/ios/Debug-iphoneos/camera/libcamera.a(CameraPlugin.o) /Users/Raymond Tucker/Downloads/user-master 2/build/ios/Debug-iphoneos/fast_qr_reader_view/libfast_qr_reader_view.a(FastQrReaderViewPlugin.o) duplicate symbol 'OBJC_METACLASS$_FLTCam' in: /Users/Raymond Tucker/Downloads/user-master 2/build/ios/Debug-iphoneos/camera/libcamera.a(CameraPlugin.o) /Users/Raymond Tucker/Downloads/user-master 2/build/ios/Debug-iphoneos/fast_qr_reader_view/libfast_qr_reader_view.a(FastQrReaderViewPlugin.o) duplicate symbol 'OBJC_IVAR$_FLTCam._eventChannel' in: /Users/Raymond Tucker/Downloads/user-master 2/build/ios/Debug-iphoneos/camera/libcamera.a(CameraPlugin.o) /Users/Raymond Tucker/Downloads/user-master 2/build/ios/Debug-iphoneos/fast_qr_reader_view/libfast_qr_reader_view.a(FastQrReaderViewPlugin.o) duplicate symbol 'OBJC_IVAR$_FLTCam._eventSink' in: /Users/Raymond Tucker/Downloads/user-master 2/build/ios/Debug-iphoneos/camera/libcamera.a(CameraPlugin.o) /Users/Raymond Tucker/Downloads/user-master 2/build/ios/Debug-iphoneos/fast_qr_reader_view/libfast_qr_reader_view.a(FastQrReaderViewPlugin.o) duplicate symbol 'OBJC_IVAR$_FLTCam._previewSize' in: /Users/Raymond Tucker/Downloads/user-master 2/build/ios/Debug-iphoneos/camera/libcamera.a(CameraPlugin.o) /Users/Raymond Tucker/Downloads/user-master 2/build/ios/Debug-iphoneos/fast_qr_reader_view/libfast_qr_reader_view.a(FastQrReaderViewPlugin.o) duplicate symbol 'OBJC_IVAR$_FLTCam._captureSize' in: /Users/Raymond Tucker/Downloads/user-master 2/build/ios/Debug-iphoneos/camera/libcamera.a(CameraPlugin.o) /Users/Raymond Tucker/Downloads/user-master 2/build/ios/Debug-iphoneos/fast_qr_reader_view/libfast_qr_reader_view.a(FastQrReaderViewPlugin.o) duplicate symbol 'OBJC_IVAR$_FLTCam._onFrameAvailable' in: /Users/Raymond Tucker/Downloads/user-master 2/build/ios/Debug-iphoneos/camera/libcamera.a(CameraPlugin.o) /Users/Raymond Tucker/Downloads/user-master 2/build/ios/Debug-iphoneos/fast_qr_reader_view/libfast_qr_reader_view.a(FastQrReaderViewPlugin.o) duplicate symbol 'OBJC_IVAR$_FLTCam._captureDevice' in: /Users/Raymond Tucker/Downloads/user-master 2/build/ios/Debug-iphoneos/camera/libcamera.a(CameraPlugin.o) /Users/Raymond Tucker/Downloads/user-master 2/build/ios/Debug-iphoneos/fast_qr_reader_view/libfast_qr_reader_view.a(FastQrReaderViewPlugin.o) duplicate symbol 'OBJC_IVAR$_FLTCam._textureId' in: /Users/Raymond Tucker/Downloads/user-master 2/build/ios/Debug-iphoneos/camera/libcamera.a(CameraPlugin.o) /Users/Raymond Tucker/Downloads/user-master 2/build/ios/Debug-iphoneos/fast_qr_reader_view/libfast_qr_reader_view.a(FastQrReaderViewPlugin.o) ld: 16 duplicate symbols for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)

    opened by ziasultan2 2
  • Not able to use fast_qr_reader_view 0.1.5 with camera 0.5.2+2 in one flutter project

    Not able to use fast_qr_reader_view 0.1.5 with camera 0.5.2+2 in one flutter project

    In my pubspec.yaml file I have this lines

    dependencies:
      <...>
      fast_qr_reader_view: ^0.1.5
      camera: ^0.5.2+2
    

    I trying to build project on iPhone XR simulator and XCode gives this outputs

    === BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===
        duplicate symbol _OBJC_IVAR_$_FLTCam._captureVideoOutput in:
            <...>/build/ios/Debug-iphonesimulator/camera/libcamera.a(CameraPlugin.o)
            <...>/build/ios/Debug-iphonesimulator/fast_qr_reader_view/libfast_qr_reader_view.a(FastQrReaderViewPlugin.o)
        duplicate symbol _OBJC_IVAR_$_FLTCam._videoWriterInput in:
            <...>/build/ios/Debug-iphonesimulator/camera/libcamera.a(CameraPlugin.o)
            <...>/build/ios/Debug-iphonesimulator/fast_qr_reader_view/libfast_qr_reader_view.a(FastQrReaderViewPlugin.o)
        duplicate symbol _OBJC_IVAR_$_FLTCam._captureVideoInput in:
            <...>/build/ios/Debug-iphonesimulator/camera/libcamera.a(CameraPlugin.o)
            <...>/build/ios/Debug-iphonesimulator/fast_qr_reader_view/libfast_qr_reader_view.a(FastQrReaderViewPlugin.o)
        duplicate symbol _OBJC_IVAR_$_FLTCam._assetWriterPixelBufferAdaptor in:
            <...>/build/ios/Debug-iphonesimulator/camera/libcamera.a(CameraPlugin.o)
            <...>/build/ios/Debug-iphonesimulator/fast_qr_reader_view/libfast_qr_reader_view.a(FastQrReaderViewPlugin.o)
        duplicate symbol _OBJC_IVAR_$_FLTCam._videoWriter in:
            <...>/build/ios/Debug-iphonesimulator/camera/libcamera.a(CameraPlugin.o)
            <...>/build/ios/Debug-iphonesimulator/fast_qr_reader_view/libfast_qr_reader_view.a(FastQrReaderViewPlugin.o)
        duplicate symbol _OBJC_IVAR_$_FLTCam._latestPixelBuffer in:
            <...>/build/ios/Debug-iphonesimulator/camera/libcamera.a(CameraPlugin.o)
            <...>/build/ios/Debug-iphonesimulator/fast_qr_reader_view/libfast_qr_reader_view.a(FastQrReaderViewPlugin.o)
        duplicate symbol _OBJC_IVAR_$_FLTCam._captureSession in:
            <...>/build/ios/Debug-iphonesimulator/camera/libcamera.a(CameraPlugin.o)
            <...>/build/ios/Debug-iphonesimulator/fast_qr_reader_view/libfast_qr_reader_view.a(FastQrReaderViewPlugin.o)
        duplicate symbol _OBJC_CLASS_$_FLTCam in:
            <...>/build/ios/Debug-iphonesimulator/camera/libcamera.a(CameraPlugin.o)
            <...>/build/ios/Debug-iphonesimulator/fast_qr_reader_view/libfast_qr_reader_view.a(FastQrReaderViewPlugin.o)
        duplicate symbol _OBJC_METACLASS_$_FLTCam in:
            <...>/build/ios/Debug-iphonesimulator/camera/libcamera.a(CameraPlugin.o)
            <...>/build/ios/Debug-iphonesimulator/fast_qr_reader_view/libfast_qr_reader_view.a(FastQrReaderViewPlugin.o)
        duplicate symbol _OBJC_IVAR_$_FLTCam._eventChannel in:
            <...>/build/ios/Debug-iphonesimulator/camera/libcamera.a(CameraPlugin.o)
            <...>/build/ios/Debug-iphonesimulator/fast_qr_reader_view/libfast_qr_reader_view.a(FastQrReaderViewPlugin.o)
        duplicate symbol _OBJC_IVAR_$_FLTCam._eventSink in:
            <...>/build/ios/Debug-iphonesimulator/camera/libcamera.a(CameraPlugin.o)
            <...>/build/ios/Debug-iphonesimulator/fast_qr_reader_view/libfast_qr_reader_view.a(FastQrReaderViewPlugin.o)
        duplicate symbol _OBJC_IVAR_$_FLTCam._previewSize in:
            <...>/build/ios/Debug-iphonesimulator/camera/libcamera.a(CameraPlugin.o)
            <...>/build/ios/Debug-iphonesimulator/fast_qr_reader_view/libfast_qr_reader_view.a(FastQrReaderViewPlugin.o)
        duplicate symbol _OBJC_IVAR_$_FLTCam._captureSize in:
            <...>/build/ios/Debug-iphonesimulator/camera/libcamera.a(CameraPlugin.o)
            <...>/build/ios/Debug-iphonesimulator/fast_qr_reader_view/libfast_qr_reader_view.a(FastQrReaderViewPlugin.o)
        duplicate symbol _OBJC_IVAR_$_FLTCam._onFrameAvailable in:
            <...>/build/ios/Debug-iphonesimulator/camera/libcamera.a(CameraPlugin.o)
            <...>/build/ios/Debug-iphonesimulator/fast_qr_reader_view/libfast_qr_reader_view.a(FastQrReaderViewPlugin.o)
        duplicate symbol _OBJC_IVAR_$_FLTCam._captureDevice in:
            <...>/build/ios/Debug-iphonesimulator/camera/libcamera.a(CameraPlugin.o)
            <...>/build/ios/Debug-iphonesimulator/fast_qr_reader_view/libfast_qr_reader_view.a(FastQrReaderViewPlugin.o)
        duplicate symbol _OBJC_IVAR_$_FLTCam._textureId in:
            <...>/build/ios/Debug-iphonesimulator/camera/libcamera.a(CameraPlugin.o)
            <...>/build/ios/Debug-iphonesimulator/fast_qr_reader_view/libfast_qr_reader_view.a(FastQrReaderViewPlugin.o)
        ld: 16 duplicate symbols for architecture x86_64
        clang: error: linker command failed with exit code 1 (use -v to see invocation)
    
    opened by zTrap 1
  • [Feature request] overlay indicator of QR code position in preview

    [Feature request] overlay indicator of QR code position in preview

    Similar to the way the iPhone camera overlays corners around a QR code that appears in a preview. When you point an iPhone camera at something that has a QR code, corners appear around the code and the camera offers you the option of visiting the indicated http link, for example. I'd like to overlay such an indicator on your plug in preview, not to visit a link, but just for visual aesthetics.

    opened by cfransen 1
  • Not working on IOS

    Not working on IOS

    I use

    fast_qr_reader_view: git: url: git://github.com/martflu/fast_qr_reader_view.git

    But not work on IOS , just work on Android .

    When i use

    **fast_qr_reader_view : 0.1.5 ** work on IOS . How to work of both ??

    opened by bachbonglong 2
Owner
null
Flutter Plugin for Google ML Kit Vision

A Flutter plugin to use the capabilities of on-device Google ML Kit

Brian M Tully 39 Oct 10, 2022
Iridium-reader-widget - Plug and play reader widget allowing to easily integrate an Iridium viewer inside any app

Plug and play reader widget allowing to easily integrate an Iridium viewer insid

Mantano 15 Dec 31, 2022
Flutter NFC reader plugin for iOS and Android

Flutter NFC Reader & Writer A new flutter plugin to help developers looking to use internal hardware inside iOS or Android devices for reading and wri

Matteo Crippa 321 Dec 30, 2022
Music reader for online data (Google Drive implementation). Cross platform goal : iOS, Android, MacOS, Windows

omusic A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started if this i

JeanNicolasdeLamballerie 0 Nov 30, 2021
Flutterbodydetection - A flutter plugin that uses MLKit on iOS/Android platforms to enable body pose and mask detection using Pose Detection and Selfie Segmentation APIs for both static images and live camera stream.

body_detection A flutter plugin that uses MLKit on iOS/Android platforms to enable body pose and mask detection using Pose Detection and Selfie Segmen

null 18 Dec 5, 2022
Tesla car app using Flutter that works both android and iOS. Users can unlock any door, check battery status also control the air cooler temperature and check the psi of the tires.

Tesla App Tesla car app using Flutter that works both android and iOS. Users can unlock any door, check battery status also control the air cooler tem

null 12 Dec 18, 2022
A mobile application for both android and ios made for work out and fitness purpose

It's a mobile application for both android and ios made for work out and fitness purpose with many features you can read about here, but it can be used under all subject you want, well architected code and organized !

Gwhyyy 20 Dec 18, 2022
File picker plugin for Flutter, compatible with both iOS & Android and desktop (go-flutter).

File Picker A package that allows you to use the native file explorer to pick single or multiple files, with extensions filtering support. Currently s

Miguel Ruivo 985 Jan 5, 2023
Telnyx flutter - A Flutter package for both android and iOS which helps developers with Telnyx API services

Telnyx Flutter A Flutter package for both android and iOS which helps developers

Kfir Matityahu 0 Jan 23, 2022
Use lottie in flutter for both iOS and Android

flutter_lottie Use Lottie in Flutter. Supports both iOS and Android using lottie-ios and lottie-android Current Status Supports most features that bot

Cameron Smith 160 Nov 25, 2022
A credit card scanner app made with flutter for both Android and IOS

credit_card_scanner A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you star

kosiso. O 1 Oct 16, 2021
Flutter Local Notifications - Learn how to implement local notifications into both Android and iOS using flutter_local_notifications plugin.

Flutter Local Notifications Example Flutter Local Notifications - Learn how to implement local notifications into both Android and iOS using flutter_l

Sandip Pramanik 12 Nov 29, 2022
A Flutter package for both android and iOS which provides Audio recorder

social_media_recorder A Flutter package for both android and iOS which provides

subhikhalifeh 16 Dec 29, 2022
A Flutter Accident reporting App working in both iOS and Android

Flutter Accident Reporting App A Flutter Accident reporting App working in both iOS and Android.This project total size of all Dart files is 4714 bite

sk shamimul islam 32 Oct 13, 2022
A Basic Currency Converter made for both iOS and Android using the flutter.io platform

FlutterCurrencyConverter A Basic Currency Converter made for both iOS and Android using the flutter.io platform This app uses the ExchangeRate-API for

Carlo Gabriel Villalon Tapales 40 Nov 23, 2022
💳 A Flutter package for making payments via credo central. Provides support for both Android and iOS

?? Credo Package for Flutter TODO: Put a short description of the package here that helps potential users know whether this package might be useful fo

Samuel Abada 0 Dec 26, 2021
Flutter progress dialog. Support both Android and iOS platform.

Flutter Progress Dialog [pub packages] | Flutter progress dialog. Support both Android and iOS platform

Dylan Wu 22 Oct 9, 2022
A Flutter plugin to get location updates in the background for both Android and iOS

Background Location A Flutter plugin to get location updates in the background for both Android and iOS (Requires iOS 10.0+). Uses CoreLocation for iO

Ali Almoullim 181 Jan 4, 2023
Klutter plugin makes it possible to write a Flutter plugin for both Android and iOS using Kotlin only.

The Klutter Framework makes it possible to write a Flutter plugin for both Android and iOS using Kotlin Multiplatform. Instead of writing platform spe

Gillian 33 Dec 18, 2022
Relive is a cross-platform application that can be used both in Android/IOS and it is made using Flutter

?? Introduction Relive is a cross-platform application that can be used both in Android/IOS and it is made using Flutter. It aims to solve the mental

Akshat Tripathi 14 Nov 4, 2022