QR Code Scanner for Flutter

Overview

QR Code Scanner

pub package Join the chat GH Actions

A QR code scanner that works on both iOS and Android by natively embedding the platform view within Flutter. The integration with Flutter is seamless, much better than jumping into a native Activity or a ViewController to perform the scan.

Screenshots

Android

iOS

Get Scanned QR Code

When a QR code is recognized, the text identified will be set in 'result' of type Barcode, which contains the output text as property 'code' of type String and scanned code type as property 'format' which is an enum BarcodeFormat, defined in the library.

class _QRViewExampleState extends State<QRViewExample> {
  final GlobalKey qrKey = GlobalKey(debugLabel: 'QR');
  Barcode? result;
  QRViewController? controller;

  // In order to get hot reload to work we need to pause the camera if the platform
  // is android, or resume the camera if the platform is iOS.
  @override
  void reassemble() {
    super.reassemble();
    if (Platform.isAndroid) {
      controller!.pauseCamera();
    } else if (Platform.isIOS) {
      controller!.resumeCamera();
    }
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Column(
        children: <Widget>[
          Expanded(
            flex: 5,
            child: QRView(
              key: qrKey,
              onQRViewCreated: _onQRViewCreated,
            ),
          ),
          Expanded(
            flex: 1,
            child: Center(
              child: (result != null)
                  ? Text(
                      'Barcode Type: ${describeEnum(result!.format)}   Data: ${result!.code}')
                  : Text('Scan a code'),
            ),
          )
        ],
      ),
    );
  }

  void _onQRViewCreated(QRViewController controller) {
    this.controller = controller;
    controller.scannedDataStream.listen((scanData) {
      setState(() {
        result = scanData;
      });
    });
  }

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

Android Integration

In order to use this plugin, please update the Gradle, Kotlin and Kotlin Gradle Plugin:

In android/build.gradle change ext.kotlin_version = '1.3.50' to ext.kotlin_version = '1.5.10'

In android/build.gradle change classpath 'com.android.tools.build:gradle:3.5.0' to classpath 'com.android.tools.build:gradle:4.2.0'

In android/gradle/wrapper/gradle-wrapper.properties change distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip to distributionUrl=https\://services.gradle.org/distributions/gradle-6.9-all.zip

In android/app/build.gradle change defaultConfig{ ... minSdkVersion 16 } to defaultConfig{ ... minSdkVersion 20 }

Warning

If you are using Flutter Beta or Dev channel (1.25 or 1.26) you can get the following error:

java.lang.AbstractMethodError: abstract method "void io.flutter.plugin.platform.PlatformView.onFlutterViewAttached(android.view.View)"

This is a bug in Flutter which is being tracked here: https://github.com/flutter/flutter/issues/72185

There is a workaround by adding android.enableDexingArtifactTransform=false to your gradle.properties file.

iOS Integration

In order to use this plugin, add the following to your Info.plist file:

<key>io.flutter.embedded_views_preview</key>
<true/>
<key>NSCameraUsageDescription</key>
<string>This app needs camera access to scan QR codes</string>

Web Integration

Add this to web/index.html:

<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jsQR.min.js"></script>

Please note: on web, only QR codes are supported. Other barcodes and 2D codes cannot be scanned.

Web support is in very early stage. Features such as flash, pause or resume are not implemented. Moreover, the camera preview does not respect the surrounding constraints. This is not at last due to Flutter's early state of platform views on web.

Flip Camera (Back/Front)

The default camera is the back camera.

await controller.flipCamera();

Flash (Off/On)

By default, flash is OFF.

await controller.toggleFlash();

Resume/Pause

Pause camera stream and scanner.

await controller.pauseCamera();

Resume camera stream and scanner.

await controller.resumeCamera();

SDK

Requires at least SDK 20. Requires at least iOS 8.

TODOs

  • iOS Native embedding is written to match what is supported in the framework as of the date of publication of this package. It needs to be improved as the framework support improves.
  • In future, options will be provided for default states.
  • Finally, I welcome PR's to make it better :), thanks

Credits

Comments
  • [BUG] Camera zoom in iOS vs Android

    [BUG] Camera zoom in iOS vs Android

    I just updated to the latest version qr_code_scanner 0.3.2, and found that the camera is magnified (zoom in iOS vs Android), I want to adjust the normal zoom mode

    bug question 
    opened by luanssd 60
  • [BUG] Camera feed not appearing after first load

    [BUG] Camera feed not appearing after first load

    Describe the bug I am experiencing an issue whereby if I load the QRScanner view, the camera opens but the feed from the camera isn't displayed unless the screen locks and reopens.

    Flutter information Always provide the output of flutter doctor -v as it is needed in order to know on which Flutter versions the bug exists in.

    flutter doctor -v

    [✓] Flutter (Channel stable, 1.22.6, on macOS 11.1 20C69 darwin-x64, locale en-GH) • Flutter version 1.22.6 at /Users/admin/dev/flutter • Framework revision 9b2d32b605 (7 weeks ago), 2021-01-22 14:36:39 -0800 • Engine revision 2f0af37152 • Dart version 2.10.5

    [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2) • Android SDK at /Users/admin/Library/Android/sdk • Platform android-30, build-tools 30.0.2 • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495) • All Android licenses accepted.

    [✓] Xcode - develop for iOS and macOS (Xcode 12.4) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 12.4, Build version 12D4e • CocoaPods version 1.10.1

    [!] Android Studio (version 4.1) • Android Studio at /Applications/Android Studio.app/Contents ✗ Flutter plugin not installed; this adds Flutter specific functionality. ✗ Dart plugin not installed; this adds Dart specific functionality. • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

    [✓] VS Code (version 1.54.1) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.20.0

    [✓] Connected device (1 available) • M2007J20CG (mobile) • 5dd3be00 • android-arm64 • Android 10 (API 29) ! Error: Nexus’ IPhone is busy: Waiting for Device. Xcode will continue when Nexus’ IPhone is finished. (code -10)

    ! Doctor found issues in 1 category.

    Device (please complete the following information):

    • Device: Poco X3 NFC, OnePlus Nord
    • OS: MIUI 12.0.8, Android 11

    Screenshots On open Screenshot_2021-03-09-11-01-41-364_com.Distribution.SwiftRecon.jpg

    After lock and unlock Screenshot_2021-03-09-11-01-54-802_com.Distribution.SwiftRecon.jpg

    Additional context I noticed this line in the debug log, not sure if it has any bearing on the problem at hand. W/PlatformViewsController(11402): Creating a virtual display of size: [1080, 2296] may result in problems(https://github.com/flutter/flutter/issues/2897).It is larger than the device screen size: [1080, 2205].

    Edit: added screenshots

    bug 
    opened by danagbemava 47
  • More state management. Async Return Values. Selectable Barcode types and much more.

    More state management. Async Return Values. Selectable Barcode types and much more.

    With this fork you have more functionality (which was available but not exposed to flutter user):

    • State management. Check if your flash is on. controller.flashActive. Check if the users phone has a Backcamera: controller.systemfeatures.hasBackCamera and much more ;)
    • Every native call now returns a async function which returns Success or an Error value (Check Class ReturnStatus).
    • its possible to turn off/on some functionality. you can turn off/on to show the Native Error dialog when no permission is given. (Native error dialog is also available in android) Or you can disable the flash on controller.dispose
    • its possible to call your NativeErrorDialog when you need it (controller.showNativeAlertDialog())
    • Its possible to set allowed Barcode types. (controller.setAllowedBarcodeTypes) Only these one will get returned to flutter code. <--- saw that a pull request for that one is appreciated
    • a callback to flutter when the permission is handled in the native part. In the callback you can see which permission was given and now you can do more things :)

    fixes #126 fixes #107 fixes #103 fixes #93

    I forgot to mention that this should not break the current API.

    on hold 
    opened by LeLunZ 26
  • [BUG] iOS 14 green dot notification light always visible after accessing camera .

    [BUG] iOS 14 green dot notification light always visible after accessing camera .

    Describe the bug In the example QRViewExample is one page When I got to this page to run the code scan and Pop() to leave. Everything is still normal until iOS develops a feature that allows to tell whether the camera is still working or not in: Green dot notification light is always visible after accessing camera (IOS 14) Looks like the camera still works even though it left QRViewExample

    Device:

    • Device: [e.g. iPhone7plus]
    • OS: [e.g. iOS14.0]
    bug 
    opened by leanhro2812 23
  • Class 'QRView' is not abstract and does not implement abstract member public abstract fun onRequestPermissionsResult(p0: Int, p1: Array<(out) String!>, p2: IntArray): Boolean defined in io.flutter.plugin.common.PluginRegistry.RequestPermissionsResultListener

    Class 'QRView' is not abstract and does not implement abstract member public abstract fun onRequestPermissionsResult(p0: Int, p1: Array<(out) String!>, p2: IntArray): Boolean defined in io.flutter.plugin.common.PluginRegistry.RequestPermissionsResultListener

    Error Come in new Flutter version 3.0.0

    e: G:\AAAInstallation\src\flutter.pub-cache\hosted\pub.dartlang.org\qr_code_scanner-0.7.0\android\src\main\kotlin\net\touchcapture\qr\flutterqr\QRView.kt: (23, 1): Class 'QRView' is not abstract and does not implement abstract member public abstract fun onRequestPermissionsResult(p0: Int, p1: Array<(out) String!>, p2: IntArray): Boolean defined in io.flutter.plugin.common.PluginRegistry.RequestPermissionsResultListener e: G:\AAAInstallation\src\flutter.pub-cache\hosted\pub.dartlang.org\qr_code_scanner-0.7.0\android\src\main\kotlin\net\touchcapture\qr\flutterqr\QRView.kt: (216, 26): Null can not be a value of a non-null type String e: G:\AAAInstallation\src\flutter.pub-cache\hosted\pub.dartlang.org\qr_code_scanner-0.7.0\android\src\main\kotlin\net\touchcapture\qr\flutterqr\QRView.kt: (247, 26): Null can not be a value of a non-null type String e: G:\AAAInstallation\src\flutter.pub-cache\hosted\pub.dartlang.org\qr_code_scanner-0.7.0\android\src\main\kotlin\net\touchcapture\qr\flutterqr\QRView.kt: (310, 5): 'onRequestPermissionsResult' overrides nothing e: G:\AAAInstallation\src\flutter.pub-cache\hosted\pub.dartlang.org\qr_code_scanner-0.7.0\android\src\main\kotlin\net\touchcapture\qr\flutterqr\QRViewFactory.kt: (10, 1): Class 'QRViewFactory' is not abstract and does not implement abstract base class member public abstract fun create(p0: Context?, p1: Int, p2: Any?): PlatformView defined in io.flutter.plugin.platform.PlatformViewFactory e: G:\AAAInstallation\src\flutter.pub-cache\hosted\pub.dartlang.org\qr_code_scanner-0.7.0\android\src\main\kotlin\net\touchcapture\qr\flutterqr\QRViewFactory.kt: (13, 5): 'create' overrides nothing

    opened by krButani 22
  • [BUG] Attempt to invoke virtual method 'boolean android.content.Context.isUiContext()' on a null object reference

    [BUG] Attempt to invoke virtual method 'boolean android.content.Context.isUiContext()' on a null object reference

    I Am using qr_code_scanner package in my app i am getting this error while show drwidget .

    Flutter 3.0.2 qr_code_scanner : 1.0.0, device : Android 11

    sample code initialQRViewWidget() { if (mounted) { setState(() { isdelaycalled = true; }); } Future.delayed(const Duration(milliseconds: 500), () { if (mounted) { setState(() { this.controller = null; this.qrViewWidget = new QRView( key: new GlobalKey(debugLabel: "QR11"), onQRViewCreated: onQRViewCreated, overlay: QrScannerOverlayShape( borderColor: Colors.greenAccent.shade700, borderRadius: 10, borderLength: 30, borderWidth: 10, cutOutSize: Global.screenSize!.height * 0.35), ); this.isdelaycalled = false; }); } }); }

    void onQRViewCreated(QRViewController controller) { if (mounted) setState(() { this.controller = controller; this.controller!.scannedDataStream.first.then((scanData) { scannedCode(scanData); }); }); }

    scannedCode(Barcode scanCode) { this.getItem(scanCode); }

    Widget build(BuildContext context) { return Scaffold( appBar: new AppBar( title: new TitleText( text: "Scan Code", isBold: true, textcolor: Colors.white, ), backgroundColor: ServiceConstants.defaultColor), body: new Column( children: [ new Expanded( child: this.isdelaycalled || this.isScanLoad ? Center( child: new Container( child: new Icon( FontAwesomeIcons.cameraRetro, size: 50, color: Colors.blue, ), ), ) : this.qrViewWidget!, ) ], ), ); }

    this error log E/MethodChannel#flutter/platform_views(14830): Failed to handle method call E/MethodChannel#flutter/platform_views(14830): java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.content.Context.isUiContext()' on a null object reference E/MethodChannel#flutter/platform_views(14830): at android.view.ViewConfiguration.get(ViewConfiguration.java:502) E/MethodChannel#flutter/platform_views(14830): at android.view.View.(View.java:5394) E/MethodChannel#flutter/platform_views(14830): at android.view.View.(View.java:5555) E/MethodChannel#flutter/platform_views(14830): at android.view.ViewGroup.(ViewGroup.java:707) E/MethodChannel#flutter/platform_views(14830): at android.view.ViewGroup.(ViewGroup.java:703) E/MethodChannel#flutter/platform_views(14830): at android.view.ViewGroup.(ViewGroup.java:699) E/MethodChannel#flutter/platform_views(14830): at android.view.ViewGroup.(ViewGroup.java:695) E/MethodChannel#flutter/platform_views(14830): at com.journeyapps.barcodescanner.CameraPreview.(CameraPreview.java:228) E/MethodChannel#flutter/platform_views(14830): at com.journeyapps.barcodescanner.BarcodeView.(BarcodeView.java:76) E/MethodChannel#flutter/platform_views(14830): at net.touchcapture.qr.flutterqr.CustomFramingRectBarcodeView.(CustomFramingRectBarcodeView.kt:12) E/MethodChannel#flutter/platform_views(14830): at net.touchcapture.qr.flutterqr.QRView.initBarCodeView(QRView.kt:117) E/MethodChannel#flutter/platform_views(14830): at net.touchcapture.qr.flutterqr.QRView.getView(QRView.kt:70) E/MethodChannel#flutter/platform_views(14830): at io.flutter.plugin.platform.PlatformViewsController$1.createForTextureLayer(PlatformViewsController.java:227) E/MethodChannel#flutter/platform_views(14830): at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.create(PlatformViewsChannel.java:122) E/MethodChannel#flutter/platform_views(14830): at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.onMethodCall(PlatformViewsChannel.java:60) E/MethodChannel#flutter/platform_views(14830): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:262) E/MethodChannel#flutter/platform_views(14830): at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:295) E/MethodChannel#flutter/platform_views(14830): at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$DartMessenger(DartMessenger.java:319) E/MethodChannel#flutter/platform_views(14830): at io.flutter.embedding.engine.dart.-$$Lambda$DartMessenger$TsixYUB5E6FpKhMtCSQVHKE89gQ.run(Unknown Source:12) E/MethodChannel#flutter/platform_views(14830): at android.os.Handler.handleCallback(Handler.java:938) E/MethodChannel#flutter/platform_views(14830): at android.os.Handler.dispatchMessage(Handler.java:99) E/MethodChannel#flutter/platform_views(14830): at android.os.Looper.loop(Looper.java:262) E/MethodChannel#flutter/platform_views(14830): at android.app.ActivityThread.main(ActivityThread.java:8248) E/MethodChannel#flutter/platform_views(14830): at java.lang.reflect.Method.invoke(Native Method) E/MethodChannel#flutter/platform_views(14830): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:612) E/MethodChannel#flutter/platform_views(14830): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:992) E/FrameEvents(14830): updateAcquireFence: Did not find frame. E/flutter (14830): [ERROR:flutter/lib/ui/ui_dart_state.cc(198)] Unhandled Exception: PlatformException(error, Attempt to invoke virtual method 'boolean android.content.Context.isUiContext()' on a null object reference, null, java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.content.Context.isUiContext()' on a null object reference E/flutter (14830): at android.view.ViewConfiguration.get(ViewConfiguration.java:502) E/flutter (14830): at android.view.View.(View.java:5394) E/flutter (14830): at android.view.View.(View.java:5555) E/flutter (14830): at android.view.ViewGroup.(ViewGroup.java:707) E/flutter (14830): at android.view.ViewGroup.(ViewGroup.java:703) E/flutter (14830): at android.view.ViewGroup.(ViewGroup.java:699) E/flutter (14830): at android.view.ViewGroup.(ViewGroup.java:695) E/flutter (14830): at com.journeyapps.barcodescanner.CameraPreview.(CameraPreview.java:228) E/flutter (14830): at com.journeyapps.barcodescanner.BarcodeView.(BarcodeView.java:76) E/flutter (14830): at net.touchcapture.qr.flutterqr.CustomFramingRectBarcodeView.(CustomFramingRectBarcodeView.kt:12) E/flutter (14830): at net.touchcapture.qr.flutterqr.QRView.initBarCodeView(QRView.kt:117) E/flutter (14830): at net.touchcapture.qr.flutterqr.QRView.getView(QRView.kt:70) E/flutter (14830): at io.flutter.plugin.platform.PlatformViewsController$1.createForTextureLayer(PlatformViewsController.java:227) E/flutter (14830): at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.create(PlatformViewsChannel.java:122) E/flutter (14830): at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.onMethodCall(PlatformViewsChannel.java:60) E/flutter (14830): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:262) E/flutter (14830): at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:295) E/flutter (14830): at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$DartMessenger(DartMessenger.java:319) E/flutter (14830): at io.flutter.embedding.engine.dart.-$$Lambda$DartMessenger$TsixYUB5E6FpKhMtCSQVHKE89gQ.run(Unknown Source:12) E/flutter (14830): at android.os.Handler.handleCallback(Handler.java:938) E/flutter (14830): at android.os.Handler.dispatchMessage(Handler.java:99) E/flutter (14830): at android.os.Looper.loop(Looper.java:262) E/flutter (14830): at android.app.ActivityThread.main(ActivityThread.java:8248) E/flutter (14830): at java.lang.reflect.Method.invoke(Native Method) E/flutter (14830): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:612) E/flutter (14830): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:992) E/flutter (14830): ) E/flutter (14830): #0 StandardMethodCodec.decodeEnvelope E/flutter (14830): #1 MethodChannel._invokeMethod E/flutter (14830): E/flutter (14830): #2 TextureAndroidViewController._sendCreateMessage E/flutter (14830): E/flutter (14830): #3 AndroidViewController.create E/flutter (14830): E/flutter (14830): #4 TextureAndroidViewController.setSize E/flutter (14830): E/flutter (14830): #5 RenderAndroidView._sizePlatformView E/flutter (14830): E/flutter (14830):

    bug 
    opened by Sachinsowri 19
  • minSDKVersion still 24

    minSDKVersion still 24

    Hi,

    First: very nice package!

    I see on the master branch that you changed the minSDKVersion to 19, but when installing the package in my Flutter project, it still requires version 24 when debugging.

    As I want my app to be installed to the most possible devices, the lower the minSDK version the better. Can you check this?

    Best, eeBee

    enhancement 
    opened by eebeeDEV 18
  • [BUG] Can't run in flutter 3

    [BUG] Can't run in flutter 3

    Describe the bug When running on flutter 3, I get the following error

    e: /Users/wingch/.pub-cache/hosted/pub.dartlang.org/qr_code_scanner-0.7.0/android/src/main/kotlin/net/touchcapture/qr/flutterqr/QRView.kt: (23, 1): Class 'QRView' is not abstract and does not implement abstract member public abstract fun onRequestPermissionsResult(p0: Int, p1: Array<(out) String!>, p2: IntArray): Boolean defined in io.flutter.plugin.common.PluginRegistry.RequestPermissionsResultListener
    e: /Users/wingch/.pub-cache/hosted/pub.dartlang.org/qr_code_scanner-0.7.0/android/src/main/kotlin/net/touchcapture/qr/flutterqr/QRView.kt: (216, 26): Null can not be a value of a non-null type String
    e: /Users/wingch/.pub-cache/hosted/pub.dartlang.org/qr_code_scanner-0.7.0/android/src/main/kotlin/net/touchcapture/qr/flutterqr/QRView.kt: (247, 26): Null can not be a value of a non-null type String
    e: /Users/wingch/.pub-cache/hosted/pub.dartlang.org/qr_code_scanner-0.7.0/android/src/main/kotlin/net/touchcapture/qr/flutterqr/QRView.kt: (310, 5): 'onRequestPermissionsResult' overrides nothing
    e: /Users/wingch/.pub-cache/hosted/pub.dartlang.org/qr_code_scanner-0.7.0/android/src/main/kotlin/net/touchcapture/qr/flutterqr/QRViewFactory.kt: (10, 1): Class 'QRViewFactory' is not abstract and does not implement abstract base class member public abstract fun create(p0: Context?, p1: Int, p2: Any?): PlatformView defined in io.flutter.plugin.platform.PlatformViewFactory
    e: /Users/wingch/.pub-cache/hosted/pub.dartlang.org/qr_code_scanner-0.7.0/android/src/main/kotlin/net/touchcapture/qr/flutterqr/QRViewFactory.kt: (13, 5): 'create' overrides nothing
    
    FAILURE: Build failed with an exception.
    

    Flutter information Always provide the output of flutter doctor -v as it is needed in order to know on which Flutter versions the bug exists in.

    [✓] Flutter (Channel stable, 3.0.0, on macOS 12.3.1 21E258 darwin-arm, locale zh-Hant-HK)
        • Flutter version 3.0.0 at /Users/wingch/fvm/versions/stable
        • Upstream repository https://github.com/flutter/flutter.git
        • Framework revision ee4e09cce0 (2 days ago), 2022-05-09 16:45:18 -0700
        • Engine revision d1b9a6938a
        • Dart version 2.17.0
        • DevTools version 2.12.2
    

    Device (please complete the following information):

     • Pixel 6 (mobile) 
     • android-arm64  
     • Android 12 (API 32)
    

    Screenshots If applicable, add screenshots to help explain your problem.

    Additional context Add any other context about the problem here.

    bug 
    opened by WingCH 17
  • qr_code_scanner:compileDebugKotlin still a thing after update

    qr_code_scanner:compileDebugKotlin still a thing after update

    How unclear is the following way to fix? And the readme doesn't solve anything either.

    To fix it:

    the code must be updated, it seems that the io.flutter.plugin.common.MethodCall interface has changed and the override must be updated:

    Please, developer, change the line 118 at the QRView.kt to (remove the '?'):

    ... override fun onMethodCall(call: MethodCall, result: MethodChannel.Result) { ... This will make the code run on Android with no issues!

    Originally posted by @c0h1b4 in https://github.com/juliuscanute/qr_code_scanner/issues/19#issuecomment-505458678

    bug 
    opened by SwiftyFlow 17
  • preview show black screen

    preview show black screen

    i try the following navigation.

    Scanner --> push & replace new page Home --> push & replace new page Scanner

    When go back to scanner, the camera preview show black screen. and show the following message

    I/CameraPreview(11505): Starting preview
    D/CameraInstance(11505): Starting preview
    D/CameraPreview(11505): resume()
    W/CameraPreview(11505): initCamera called twice
    D/CameraPreview(11505): resume()
    W/CameraPreview(11505): initCamera called twice
    D/CameraPreview(11505): resume()
    W/CameraPreview(11505): initCamera called twice
    

    Remarks: i just use the example code.

    bug question 
    opened by KingWu 16
  • Widget turns black, when keyboard expanded, even though it still scans

    Widget turns black, when keyboard expanded, even though it still scans

    When the keyboard on Android is expanded and the view moves, the QRView turns black. It still successfully captures QR-codes, the camera is just black.

    opened by YannickSpoerl 15
  • build(deps): bump kotlin_version from 1.7.22 to 1.8.0 in /example/android

    build(deps): bump kotlin_version from 1.7.22 to 1.8.0 in /example/android

    Bumps kotlin_version from 1.7.22 to 1.8.0. Updates kotlin-gradle-plugin from 1.7.22 to 1.8.0

    Release notes

    Sourced from kotlin-gradle-plugin's releases.

    Kotlin 1.8.0

    Changelog

    Analysis API

    • KT-50255 Analysis API: Implement standalone mode for the Analysis API

    Analysis API. FIR

    • KT-54292 Symbol Light classes: implement PsiVariable.computeConstantValue for light field
    • KT-54293 Analysis API: fix constructor symbol creation when its accessed via type alias

    Android

    • KT-53342 TCS: New AndroidSourceSet layout for multiplatform
    • KT-53013 Increase AGP compile version in KGP to 4.1.3
    • KT-54013 Report error when using deprecated Kotlin Android Extensions compiler plugin
    • KT-53709 MPP, Android SSL2: Conflicting warnings for androidTest/kotlin source set folder

    Backend. Native. Debug

    • KT-53561 Invalid LLVM module: "inlinable function call in a function with debug info must have a !dbg location"

    Compiler

    New Features

    • KT-52817 Add @JvmSerializableLambda annotation to keep old behavior of non-invokedynamic lambdas
    • KT-54460 Implementation of non-local break and continue
    • KT-53916 Support Xcode 14 and new Objective-C frameworks in Kotlin/Native compiler
    • KT-32208 Generate method annotations into bytecode for suspend lambdas (on invokeSuspend)
    • KT-53438 Introduce a way to get SourceDebugExtension attribute value via JVMTI for profiler and coverage

    Performance Improvements

    • KT-53347 Get rid of excess allocations in parser
    • KT-53689 JVM: Optimize equality on class literals
    • KT-53119 Improve String Concatenation Lowering

    Fixes

    • KT-53465 Unnecessary checkcast to array of reified type is not optimized since Kotlin 1.6.20
    • KT-49658 NI: False negative TYPE_MISMATCH on nullable type with when
    • KT-48162 NON_VARARG_SPREAD isn't reported on *toTypedArray() call
    • KT-43493 NI: False negative: no compilation error "Operator '==' cannot be applied to 'Long' and 'Int'" is reported in builder inference lambdas
    • KT-54393 Change in behavior from 1.7.10 to 1.7.20 for java field override.
    • KT-55357 IllegalStateException when reading a class that delegates to a Java class with a definitely-not-null type with a flexible upper bound
    • KT-55068 Kotlin Gradle DSL: No mapping for symbol: VALUE_PARAMETER SCRIPT_IMPLICIT_RECEIVER on JVM IR backend
    • KT-51284 SAM conversion doesn't work if method has context receivers
    • KT-48532 Remove old JVM backend

    ... (truncated)

    Changelog

    Sourced from kotlin-gradle-plugin's changelog.

    1.8.0

    Analysis API

    • KT-50255 Analysis API: Implement standalone mode for the Analysis API

    Analysis API. FIR

    • KT-54292 Symbol Light classes: implement PsiVariable.computeConstantValue for light field
    • KT-54293 Analysis API: fix constructor symbol creation when its accessed via type alias

    Android

    • KT-53342 TCS: New AndroidSourceSet layout for multiplatform
    • KT-53013 Increase AGP compile version in KGP to 4.1.3
    • KT-54013 Report error when using deprecated Kotlin Android Extensions compiler plugin
    • KT-53709 MPP, Android SSL2: Conflicting warnings for androidTest/kotlin source set folder

    Backend. Native. Debug

    • KT-53561 Invalid LLVM module: "inlinable function call in a function with debug info must have a !dbg location"

    Compiler

    New Features

    • KT-52817 Add @JvmSerializableLambda annotation to keep old behavior of non-invokedynamic lambdas
    • KT-54460 Implementation of non-local break and continue
    • KT-53916 Support Xcode 14 and new Objective-C frameworks in Kotlin/Native compiler
    • KT-32208 Generate method annotations into bytecode for suspend lambdas (on invokeSuspend)
    • KT-53438 Introduce a way to get SourceDebugExtension attribute value via JVMTI for profiler and coverage

    Performance Improvements

    • KT-53347 Get rid of excess allocations in parser
    • KT-53689 JVM: Optimize equality on class literals
    • KT-53119 Improve String Concatenation Lowering

    Fixes

    • KT-53465 Unnecessary checkcast to array of reified type is not optimized since Kotlin 1.6.20
    • KT-49658 NI: False negative TYPE_MISMATCH on nullable type with when
    • KT-48162 NON_VARARG_SPREAD isn't reported on *toTypedArray() call
    • KT-43493 NI: False negative: no compilation error "Operator '==' cannot be applied to 'Long' and 'Int'" is reported in builder inference lambdas
    • KT-54393 Change in behavior from 1.7.10 to 1.7.20 for java field override.
    • KT-55357 IllegalStateException when reading a class that delegates to a Java class with a definitely-not-null type with a flexible upper bound
    • KT-55068 Kotlin Gradle DSL: No mapping for symbol: VALUE_PARAMETER SCRIPT_IMPLICIT_RECEIVER on JVM IR backend
    • KT-51284 SAM conversion doesn't work if method has context receivers
    • KT-48532 Remove old JVM backend
    • KT-55065 Kotlin Gradle DSL: Reflection cannot find class data for lambda, produced by JVM IR backend

    ... (truncated)

    Commits
    • da1a843 Add ChangeLog for 1.8.0-RC2
    • d325cf8 Call additional publishToMavenLocal in maven build scripts and enable info
    • 0403d70 Don't leave Gradle daemons after build scripts
    • 52b225d Fix task module-name is not propagated to compiler arguments
    • d40ebc3 Specify versions-maven-plugin version explicitly
    • 2e829ed Fix version parsing crash on Gradle rich version string
    • f603c0e Scripting, IR: fix capturing of implicit receiver
    • 06cbf8f Scripting, tests: enable custom script tests with IR
    • d61cef0 Fix deserialization exception for DNN types from Java
    • ea33e72 JVM IR: script is a valid container for local delegated properties
    • Additional commits viewable in compare view

    Updates kotlin-stdlib-jdk7 from 1.7.22 to 1.8.0

    Release notes

    Sourced from kotlin-stdlib-jdk7's releases.

    Kotlin 1.8.0

    Changelog

    Analysis API

    • KT-50255 Analysis API: Implement standalone mode for the Analysis API

    Analysis API. FIR

    • KT-54292 Symbol Light classes: implement PsiVariable.computeConstantValue for light field
    • KT-54293 Analysis API: fix constructor symbol creation when its accessed via type alias

    Android

    • KT-53342 TCS: New AndroidSourceSet layout for multiplatform
    • KT-53013 Increase AGP compile version in KGP to 4.1.3
    • KT-54013 Report error when using deprecated Kotlin Android Extensions compiler plugin
    • KT-53709 MPP, Android SSL2: Conflicting warnings for androidTest/kotlin source set folder

    Backend. Native. Debug

    • KT-53561 Invalid LLVM module: "inlinable function call in a function with debug info must have a !dbg location"

    Compiler

    New Features

    • KT-52817 Add @JvmSerializableLambda annotation to keep old behavior of non-invokedynamic lambdas
    • KT-54460 Implementation of non-local break and continue
    • KT-53916 Support Xcode 14 and new Objective-C frameworks in Kotlin/Native compiler
    • KT-32208 Generate method annotations into bytecode for suspend lambdas (on invokeSuspend)
    • KT-53438 Introduce a way to get SourceDebugExtension attribute value via JVMTI for profiler and coverage

    Performance Improvements

    • KT-53347 Get rid of excess allocations in parser
    • KT-53689 JVM: Optimize equality on class literals
    • KT-53119 Improve String Concatenation Lowering

    Fixes

    • KT-53465 Unnecessary checkcast to array of reified type is not optimized since Kotlin 1.6.20
    • KT-49658 NI: False negative TYPE_MISMATCH on nullable type with when
    • KT-48162 NON_VARARG_SPREAD isn't reported on *toTypedArray() call
    • KT-43493 NI: False negative: no compilation error "Operator '==' cannot be applied to 'Long' and 'Int'" is reported in builder inference lambdas
    • KT-54393 Change in behavior from 1.7.10 to 1.7.20 for java field override.
    • KT-55357 IllegalStateException when reading a class that delegates to a Java class with a definitely-not-null type with a flexible upper bound
    • KT-55068 Kotlin Gradle DSL: No mapping for symbol: VALUE_PARAMETER SCRIPT_IMPLICIT_RECEIVER on JVM IR backend
    • KT-51284 SAM conversion doesn't work if method has context receivers
    • KT-48532 Remove old JVM backend

    ... (truncated)

    Changelog

    Sourced from kotlin-stdlib-jdk7's changelog.

    1.8.0

    Analysis API

    • KT-50255 Analysis API: Implement standalone mode for the Analysis API

    Analysis API. FIR

    • KT-54292 Symbol Light classes: implement PsiVariable.computeConstantValue for light field
    • KT-54293 Analysis API: fix constructor symbol creation when its accessed via type alias

    Android

    • KT-53342 TCS: New AndroidSourceSet layout for multiplatform
    • KT-53013 Increase AGP compile version in KGP to 4.1.3
    • KT-54013 Report error when using deprecated Kotlin Android Extensions compiler plugin
    • KT-53709 MPP, Android SSL2: Conflicting warnings for androidTest/kotlin source set folder

    Backend. Native. Debug

    • KT-53561 Invalid LLVM module: "inlinable function call in a function with debug info must have a !dbg location"

    Compiler

    New Features

    • KT-52817 Add @JvmSerializableLambda annotation to keep old behavior of non-invokedynamic lambdas
    • KT-54460 Implementation of non-local break and continue
    • KT-53916 Support Xcode 14 and new Objective-C frameworks in Kotlin/Native compiler
    • KT-32208 Generate method annotations into bytecode for suspend lambdas (on invokeSuspend)
    • KT-53438 Introduce a way to get SourceDebugExtension attribute value via JVMTI for profiler and coverage

    Performance Improvements

    • KT-53347 Get rid of excess allocations in parser
    • KT-53689 JVM: Optimize equality on class literals
    • KT-53119 Improve String Concatenation Lowering

    Fixes

    • KT-53465 Unnecessary checkcast to array of reified type is not optimized since Kotlin 1.6.20
    • KT-49658 NI: False negative TYPE_MISMATCH on nullable type with when
    • KT-48162 NON_VARARG_SPREAD isn't reported on *toTypedArray() call
    • KT-43493 NI: False negative: no compilation error "Operator '==' cannot be applied to 'Long' and 'Int'" is reported in builder inference lambdas
    • KT-54393 Change in behavior from 1.7.10 to 1.7.20 for java field override.
    • KT-55357 IllegalStateException when reading a class that delegates to a Java class with a definitely-not-null type with a flexible upper bound
    • KT-55068 Kotlin Gradle DSL: No mapping for symbol: VALUE_PARAMETER SCRIPT_IMPLICIT_RECEIVER on JVM IR backend
    • KT-51284 SAM conversion doesn't work if method has context receivers
    • KT-48532 Remove old JVM backend
    • KT-55065 Kotlin Gradle DSL: Reflection cannot find class data for lambda, produced by JVM IR backend

    ... (truncated)

    Commits
    • da1a843 Add ChangeLog for 1.8.0-RC2
    • d325cf8 Call additional publishToMavenLocal in maven build scripts and enable info
    • 0403d70 Don't leave Gradle daemons after build scripts
    • 52b225d Fix task module-name is not propagated to compiler arguments
    • d40ebc3 Specify versions-maven-plugin version explicitly
    • 2e829ed Fix version parsing crash on Gradle rich version string
    • f603c0e Scripting, IR: fix capturing of implicit receiver
    • 06cbf8f Scripting, tests: enable custom script tests with IR
    • d61cef0 Fix deserialization exception for DNN types from Java
    • ea33e72 JVM IR: script is a valid container for local delegated properties
    • Additional commits viewable in compare view

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies java 
    opened by dependabot[bot] 0
  • build(deps): bump kotlin_version from 1.7.22 to 1.8.0 in /android

    build(deps): bump kotlin_version from 1.7.22 to 1.8.0 in /android

    Bumps kotlin_version from 1.7.22 to 1.8.0. Updates kotlin-gradle-plugin from 1.7.22 to 1.8.0

    Release notes

    Sourced from kotlin-gradle-plugin's releases.

    Kotlin 1.8.0

    Changelog

    Analysis API

    • KT-50255 Analysis API: Implement standalone mode for the Analysis API

    Analysis API. FIR

    • KT-54292 Symbol Light classes: implement PsiVariable.computeConstantValue for light field
    • KT-54293 Analysis API: fix constructor symbol creation when its accessed via type alias

    Android

    • KT-53342 TCS: New AndroidSourceSet layout for multiplatform
    • KT-53013 Increase AGP compile version in KGP to 4.1.3
    • KT-54013 Report error when using deprecated Kotlin Android Extensions compiler plugin
    • KT-53709 MPP, Android SSL2: Conflicting warnings for androidTest/kotlin source set folder

    Backend. Native. Debug

    • KT-53561 Invalid LLVM module: "inlinable function call in a function with debug info must have a !dbg location"

    Compiler

    New Features

    • KT-52817 Add @JvmSerializableLambda annotation to keep old behavior of non-invokedynamic lambdas
    • KT-54460 Implementation of non-local break and continue
    • KT-53916 Support Xcode 14 and new Objective-C frameworks in Kotlin/Native compiler
    • KT-32208 Generate method annotations into bytecode for suspend lambdas (on invokeSuspend)
    • KT-53438 Introduce a way to get SourceDebugExtension attribute value via JVMTI for profiler and coverage

    Performance Improvements

    • KT-53347 Get rid of excess allocations in parser
    • KT-53689 JVM: Optimize equality on class literals
    • KT-53119 Improve String Concatenation Lowering

    Fixes

    • KT-53465 Unnecessary checkcast to array of reified type is not optimized since Kotlin 1.6.20
    • KT-49658 NI: False negative TYPE_MISMATCH on nullable type with when
    • KT-48162 NON_VARARG_SPREAD isn't reported on *toTypedArray() call
    • KT-43493 NI: False negative: no compilation error "Operator '==' cannot be applied to 'Long' and 'Int'" is reported in builder inference lambdas
    • KT-54393 Change in behavior from 1.7.10 to 1.7.20 for java field override.
    • KT-55357 IllegalStateException when reading a class that delegates to a Java class with a definitely-not-null type with a flexible upper bound
    • KT-55068 Kotlin Gradle DSL: No mapping for symbol: VALUE_PARAMETER SCRIPT_IMPLICIT_RECEIVER on JVM IR backend
    • KT-51284 SAM conversion doesn't work if method has context receivers
    • KT-48532 Remove old JVM backend

    ... (truncated)

    Changelog

    Sourced from kotlin-gradle-plugin's changelog.

    1.8.0

    Analysis API

    • KT-50255 Analysis API: Implement standalone mode for the Analysis API

    Analysis API. FIR

    • KT-54292 Symbol Light classes: implement PsiVariable.computeConstantValue for light field
    • KT-54293 Analysis API: fix constructor symbol creation when its accessed via type alias

    Android

    • KT-53342 TCS: New AndroidSourceSet layout for multiplatform
    • KT-53013 Increase AGP compile version in KGP to 4.1.3
    • KT-54013 Report error when using deprecated Kotlin Android Extensions compiler plugin
    • KT-53709 MPP, Android SSL2: Conflicting warnings for androidTest/kotlin source set folder

    Backend. Native. Debug

    • KT-53561 Invalid LLVM module: "inlinable function call in a function with debug info must have a !dbg location"

    Compiler

    New Features

    • KT-52817 Add @JvmSerializableLambda annotation to keep old behavior of non-invokedynamic lambdas
    • KT-54460 Implementation of non-local break and continue
    • KT-53916 Support Xcode 14 and new Objective-C frameworks in Kotlin/Native compiler
    • KT-32208 Generate method annotations into bytecode for suspend lambdas (on invokeSuspend)
    • KT-53438 Introduce a way to get SourceDebugExtension attribute value via JVMTI for profiler and coverage

    Performance Improvements

    • KT-53347 Get rid of excess allocations in parser
    • KT-53689 JVM: Optimize equality on class literals
    • KT-53119 Improve String Concatenation Lowering

    Fixes

    • KT-53465 Unnecessary checkcast to array of reified type is not optimized since Kotlin 1.6.20
    • KT-49658 NI: False negative TYPE_MISMATCH on nullable type with when
    • KT-48162 NON_VARARG_SPREAD isn't reported on *toTypedArray() call
    • KT-43493 NI: False negative: no compilation error "Operator '==' cannot be applied to 'Long' and 'Int'" is reported in builder inference lambdas
    • KT-54393 Change in behavior from 1.7.10 to 1.7.20 for java field override.
    • KT-55357 IllegalStateException when reading a class that delegates to a Java class with a definitely-not-null type with a flexible upper bound
    • KT-55068 Kotlin Gradle DSL: No mapping for symbol: VALUE_PARAMETER SCRIPT_IMPLICIT_RECEIVER on JVM IR backend
    • KT-51284 SAM conversion doesn't work if method has context receivers
    • KT-48532 Remove old JVM backend
    • KT-55065 Kotlin Gradle DSL: Reflection cannot find class data for lambda, produced by JVM IR backend

    ... (truncated)

    Commits
    • da1a843 Add ChangeLog for 1.8.0-RC2
    • d325cf8 Call additional publishToMavenLocal in maven build scripts and enable info
    • 0403d70 Don't leave Gradle daemons after build scripts
    • 52b225d Fix task module-name is not propagated to compiler arguments
    • d40ebc3 Specify versions-maven-plugin version explicitly
    • 2e829ed Fix version parsing crash on Gradle rich version string
    • f603c0e Scripting, IR: fix capturing of implicit receiver
    • 06cbf8f Scripting, tests: enable custom script tests with IR
    • d61cef0 Fix deserialization exception for DNN types from Java
    • ea33e72 JVM IR: script is a valid container for local delegated properties
    • Additional commits viewable in compare view

    Updates kotlin-stdlib-jdk7 from 1.7.22 to 1.8.0

    Release notes

    Sourced from kotlin-stdlib-jdk7's releases.

    Kotlin 1.8.0

    Changelog

    Analysis API

    • KT-50255 Analysis API: Implement standalone mode for the Analysis API

    Analysis API. FIR

    • KT-54292 Symbol Light classes: implement PsiVariable.computeConstantValue for light field
    • KT-54293 Analysis API: fix constructor symbol creation when its accessed via type alias

    Android

    • KT-53342 TCS: New AndroidSourceSet layout for multiplatform
    • KT-53013 Increase AGP compile version in KGP to 4.1.3
    • KT-54013 Report error when using deprecated Kotlin Android Extensions compiler plugin
    • KT-53709 MPP, Android SSL2: Conflicting warnings for androidTest/kotlin source set folder

    Backend. Native. Debug

    • KT-53561 Invalid LLVM module: "inlinable function call in a function with debug info must have a !dbg location"

    Compiler

    New Features

    • KT-52817 Add @JvmSerializableLambda annotation to keep old behavior of non-invokedynamic lambdas
    • KT-54460 Implementation of non-local break and continue
    • KT-53916 Support Xcode 14 and new Objective-C frameworks in Kotlin/Native compiler
    • KT-32208 Generate method annotations into bytecode for suspend lambdas (on invokeSuspend)
    • KT-53438 Introduce a way to get SourceDebugExtension attribute value via JVMTI for profiler and coverage

    Performance Improvements

    • KT-53347 Get rid of excess allocations in parser
    • KT-53689 JVM: Optimize equality on class literals
    • KT-53119 Improve String Concatenation Lowering

    Fixes

    • KT-53465 Unnecessary checkcast to array of reified type is not optimized since Kotlin 1.6.20
    • KT-49658 NI: False negative TYPE_MISMATCH on nullable type with when
    • KT-48162 NON_VARARG_SPREAD isn't reported on *toTypedArray() call
    • KT-43493 NI: False negative: no compilation error "Operator '==' cannot be applied to 'Long' and 'Int'" is reported in builder inference lambdas
    • KT-54393 Change in behavior from 1.7.10 to 1.7.20 for java field override.
    • KT-55357 IllegalStateException when reading a class that delegates to a Java class with a definitely-not-null type with a flexible upper bound
    • KT-55068 Kotlin Gradle DSL: No mapping for symbol: VALUE_PARAMETER SCRIPT_IMPLICIT_RECEIVER on JVM IR backend
    • KT-51284 SAM conversion doesn't work if method has context receivers
    • KT-48532 Remove old JVM backend

    ... (truncated)

    Changelog

    Sourced from kotlin-stdlib-jdk7's changelog.

    1.8.0

    Analysis API

    • KT-50255 Analysis API: Implement standalone mode for the Analysis API

    Analysis API. FIR

    • KT-54292 Symbol Light classes: implement PsiVariable.computeConstantValue for light field
    • KT-54293 Analysis API: fix constructor symbol creation when its accessed via type alias

    Android

    • KT-53342 TCS: New AndroidSourceSet layout for multiplatform
    • KT-53013 Increase AGP compile version in KGP to 4.1.3
    • KT-54013 Report error when using deprecated Kotlin Android Extensions compiler plugin
    • KT-53709 MPP, Android SSL2: Conflicting warnings for androidTest/kotlin source set folder

    Backend. Native. Debug

    • KT-53561 Invalid LLVM module: "inlinable function call in a function with debug info must have a !dbg location"

    Compiler

    New Features

    • KT-52817 Add @JvmSerializableLambda annotation to keep old behavior of non-invokedynamic lambdas
    • KT-54460 Implementation of non-local break and continue
    • KT-53916 Support Xcode 14 and new Objective-C frameworks in Kotlin/Native compiler
    • KT-32208 Generate method annotations into bytecode for suspend lambdas (on invokeSuspend)
    • KT-53438 Introduce a way to get SourceDebugExtension attribute value via JVMTI for profiler and coverage

    Performance Improvements

    • KT-53347 Get rid of excess allocations in parser
    • KT-53689 JVM: Optimize equality on class literals
    • KT-53119 Improve String Concatenation Lowering

    Fixes

    • KT-53465 Unnecessary checkcast to array of reified type is not optimized since Kotlin 1.6.20
    • KT-49658 NI: False negative TYPE_MISMATCH on nullable type with when
    • KT-48162 NON_VARARG_SPREAD isn't reported on *toTypedArray() call
    • KT-43493 NI: False negative: no compilation error "Operator '==' cannot be applied to 'Long' and 'Int'" is reported in builder inference lambdas
    • KT-54393 Change in behavior from 1.7.10 to 1.7.20 for java field override.
    • KT-55357 IllegalStateException when reading a class that delegates to a Java class with a definitely-not-null type with a flexible upper bound
    • KT-55068 Kotlin Gradle DSL: No mapping for symbol: VALUE_PARAMETER SCRIPT_IMPLICIT_RECEIVER on JVM IR backend
    • KT-51284 SAM conversion doesn't work if method has context receivers
    • KT-48532 Remove old JVM backend
    • KT-55065 Kotlin Gradle DSL: Reflection cannot find class data for lambda, produced by JVM IR backend

    ... (truncated)

    Commits
    • da1a843 Add ChangeLog for 1.8.0-RC2
    • d325cf8 Call additional publishToMavenLocal in maven build scripts and enable info
    • 0403d70 Don't leave Gradle daemons after build scripts
    • 52b225d Fix task module-name is not propagated to compiler arguments
    • d40ebc3 Specify versions-maven-plugin version explicitly
    • 2e829ed Fix version parsing crash on Gradle rich version string
    • f603c0e Scripting, IR: fix capturing of implicit receiver
    • 06cbf8f Scripting, tests: enable custom script tests with IR
    • d61cef0 Fix deserialization exception for DNN types from Java
    • ea33e72 JVM IR: script is a valid container for local delegated properties
    • Additional commits viewable in compare view

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies java 
    opened by dependabot[bot] 0
  • Camera bugs

    Camera bugs

    Sometime camera was stop when pause the scan controller, but something scan controller was pause and QRCODE scanner was pause too but camera didn't pause at all. If this issues is solve it will be good to use because it really good at scan QRCODE or BarCode.

    bug 
    opened by layisme 0
  • [BUG] java.lang.RuntimeException: java.lang.NoSuchMethodException: r1.e.values [] when build app android release.

    [BUG] java.lang.RuntimeException: java.lang.NoSuchMethodException: r1.e.values [] when build app android release.

    E/AndroidRuntime(15162): java.lang.RuntimeException: java.lang.NoSuchMethodException: r1.e.values [] E/AndroidRuntime(15162): at java.lang.Enum.enumValues(Enum.java:272) E/AndroidRuntime(15162): at java.lang.Enum.-$$Nest$smenumValues(Unknown Source:0) E/AndroidRuntime(15162): at java.lang.Enum$1.create(Enum.java:279) E/AndroidRuntime(15162): at java.lang.Enum$1.create(Enum.java:277) E/AndroidRuntime(15162): at libcore.util.BasicLruCache.get(BasicLruCache.java:63) E/AndroidRuntime(15162): at java.lang.Enum.getSharedConstants(Enum.java:291) E/AndroidRuntime(15162): at java.lang.Class.getEnumConstantsShared(Class.java:2461) E/AndroidRuntime(15162): at java.util.EnumMap.getKeyUniverse(EnumMap.java:754) E/AndroidRuntime(15162): at java.util.EnumMap.(EnumMap.java:134) E/AndroidRuntime(15162): at R1.n.a(DefaultDecoderFactory.java:1)

    bug 
    opened by chituanh 0
  • build(deps): bump desugar_jdk_libs from 1.2.2 to 2.0.0 in /android

    build(deps): bump desugar_jdk_libs from 1.2.2 to 2.0.0 in /android

    Bumps desugar_jdk_libs from 1.2.2 to 2.0.0.

    Changelog

    Sourced from desugar_jdk_libs's changelog.

    Version 2.0.0 (2022-09-16)

    • Release based on JDK-11. Require AGP version 7.4.0-alpha10 or later (Android Studio 2022.1.1).
    • Supports three different configurations desugar_jdk_libs_minimal, desugar_jdk_libs and desugar_jdk_libs_nio.
      • desugar_jdk_libs_minimal limits desugaring to package java.util.function and class java.util.Optional.
      • desugar_jdk_libs desugars the same APIs as in version 1.1.x and 1.2.x.
      • desugar_jdk_libs_nio includes desugaring of package java.nio.
    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies java 
    opened by dependabot[bot] 0
Releases(1.0.0)
  • 1.0.0(May 30, 2022)

    Breaking changes: Minimum Flutter version is now Flutter 3.0.0 (Dart 2.17.0).

    Features

    • Inverted is now mixed with normal scanning.
    • onPermissionSet now works on web aswell.
    • [Android] zxing core is updated to 3.5.0.
    • [Android] Several code improvements.
    • [Android] Several dependencies updated.
    Source code(tar.gz)
    Source code(zip)
  • 0.7.0(Feb 17, 2022)

    Features

    • Add inverted feature for Android. See https://github.com/juliuscanute/qr_code_scanner/issues/403

    Bugfixes

    • Fixed permission error on devices running Android 7 or lower.
    • Fixed error being thrown when user declines permission on iOS.
    • Updated dependencies
    Source code(tar.gz)
    Source code(zip)
  • 0.6.1(Nov 3, 2021)

  • 0.6.0(Nov 1, 2021)

    Features

    • Add support for raw bytes on iOS. (#421)
    • Add custom cutout width and height next to cutout size. (#432)

    Bugfixes

    • Fix for calling permission multiple times. (#381)
    • Fix for QRView Overlay cutoutbottomoffset. (#383)
    • Multiple minor improvements
    Source code(tar.gz)
    Source code(zip)
  • 0.5.2(Jul 16, 2021)

    Bugfixes

    • Increased delay to fix QRView opening zoomed in on some devices by adding small delay to updateDimensions(). (#250)
    • Updated ZXING from 3.3.0 to 3.4.1 (#369)
    • Fixed permission not being called correctly on Android (#351)
    Source code(tar.gz)
    Source code(zip)
  • 0.5.1(May 31, 2021)

  • 0.5.0(May 31, 2021)

    • Added initial web-support. This function is still under development and not fully tested.
    • Fixed permissions on iOS.
    • Updated dependencies.
    Source code(tar.gz)
    Source code(zip)
  • 0.4.0(Mar 25, 2021)

Owner
null
Flutter QRCode Scanner APP

Flutter QRCode Scanner APP Show some ❤️ and star the repo to support the project

BAGUS BUDI SATOTO 9 Dec 5, 2022
versão premium do app aoo Scanner-QRCode

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

Vinícius Dadário de Freitas 2 Feb 20, 2022
QR.Flutter is a Flutter library for simple and fast QR code rendering via a Widget or custom painter.

QR.Flutter is a Flutter library for simple and fast QR code rendering via a Widget or custom painter. Need help? Please do not submit an issue for a "

Yakka 612 Jan 4, 2023
A web app to generate soft ui flutter code, build with flutter

Neumorphism A web app to generate soft ui flutter code, build with flutter. Prod

冷石 Boy 62 Dec 28, 2022
A multiplatform Dart movie app with 40% of code sharing between Flutter and the Web.

A multiplatform Dart movie app with 40% of code sharing between Flutter and the Web.

Iiro Krankka 3.4k Dec 30, 2022
Berikut merupakan source code Chat Apps dengan Flutter + GetX + Firebase

chatapp 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

Sandikha Rahardi 52 Dec 31, 2022
Source code for @flutter.master

Flutter-Master Reels Onboarding screen Go Personal Finance Go Nike Store Go Travel App Go Solar system App Go Animations Implicit animations Go Tween

null 28 Nov 16, 2022
Repository with Frontend code for InnoTutor project. It is written on Flutter.

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

InnoTutor 23 Sep 17, 2022
Flutter ToDo application using Clean Code architecture

DoneIt ?? DoneIt is a sample note app ?? Flutter application ?? built to demonstrate use of Clean Architecture tools. Dedicated to all Flutter Develop

Harshal 7 Dec 27, 2022
UI design for mobile, create using visual studio code & flutter dart programming languange

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

null 1 Oct 13, 2021
Routinger is a task scheduler app that is made to make you a better person at no extra cost. The code is open-source. Dart language and Flutter framework are used extensively.

Routinger This is a simple app that will allow you to schedule your tasks, create a simple to-do, and also make recurring tasks. The app ends you noti

Routinger 16 Dec 17, 2022
a sample flutter app using Injection, routing and simple authentication follows clean code and best practices

Flutter Clean Project A sample flutter app using Injection, routing and simple authentication follows clean code and best practices Features Cleaned f

Moez Shakeri 12 Jan 2, 2023
Berikut ini merupakan code tutorial flutter UI yang didesain oleh Muhammad Najib

mytsel 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

Sandikha Rahardi 21 Dec 25, 2022
A beautiful drawing view for a your flutter application with single line of code

Flutter Draw A beautiful drawing view for a your flutter application with single line of code. To start with this, we need to simply add the dependenc

Sanskar Tiwari 69 Dec 26, 2022
Flutter в режиме live-code. Потому что прёт! Секретный проект на Hasura и Firebase.

minsk8 ?? Flutter в режиме live-code. Потому что прёт! Маркетплейс на Hasura и Firebase! How to Start $ flutter packages pub run build_runner build --

#кодеротбога 54 Dec 26, 2022
A flutter app that reads the qr code and shows the content

qr_code_reader dependencies: qr_flutter: ^3.2.0 barcode_scan: ^3.0.1 url_launche

Aravind B 0 Jan 9, 2022
A collection of packages created to increase code reuse across many of my Flutter projects.

CodeWithAndrea Flutter Packages A collection of packages, created to increase code reuse across many of my Flutter projects. They include: Wrappers fo

Andrea Bizzotto 111 Dec 29, 2022
Wake Up & Code Sample Flutter Project

todo_app 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

null 0 Dec 29, 2021
Utilities for loading and running WASM modules from Dart code

Provides utilities for loading and running WASM modules Built on top of the Wasmer runtime. Setup Run dart run wasm:setup to build the Wasmer runtime.

Dart 284 Dec 23, 2022