Skip to content

[BUG] Preview screen is black #415

@sc00n

Description

@sc00n

Sometimes (more often than not), the preview screen is fully black (as if camera is off). It is still able to scan a code though.

I tried it on moto g 5G plus (mobile) • ZY227M48LP • android-arm64 • Android 11 (API 30)

I just copied the example code from https://pub.dev/packages/qr_code_scanner
I use qr_code_scanner 0.5.2.

edit: When I close my screen for some seconds and open it up again, it starts working again.

flutter doctor -v
[√] Flutter (Channel stable, 2.2.0, on Microsoft Windows [Version 10.0.19043.1165], locale nl-BE)
    • Flutter version 2.2.0 at C:\src\flutter\flutter
    • Framework revision b22742018b (4 months ago), 2021-05-14 19:12:57 -0700
    • Engine revision a9d88a4d18
    • Dart version 2.13.0

[!] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at C:\Users\u0084978\AppData\Local\Android\sdk
    • Platform android-30, build-tools 30.0.2
    • Java binary at: C:\Program Files\Android\Android Studio2\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
    X Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[√] Android Studio (version 4.1.0)
    • Android Studio at C:\Program Files\Android\Android Studio2
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

[√] Connected device (3 available)
    • moto g 5G plus (mobile) • ZY227M48LP • android-arm64  • Android 11 (API 30)
    • Chrome (web)            • chrome     • web-javascript • Google Chrome 93.0.4577.63
    • Edge (web)              • edge       • web-javascript • Microsoft Edge 92.0.902.78

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions