Skip to content

[Windows] Problems Scanning Barcode #84210

@ReniDelonzek

Description

@ReniDelonzek

Steps to Reproduce

  1. Run flutter create barcode_scan.
  2. Create a simple input
TextFormField(
        decoration: InputDecoration(labelText: 'Code'),
        maxLines: 30,
      ),
  1. Scan any barcode with a connected scanner that produces keyboard input

Expected results: That the input captures the code read correctly

Actual results: The input captures the code, but it sometimes comes incomplete

Result of multiple captures in a Flutter application
image

Result of multiple captures in any application such as VSCode
image

I also tried to work with RawKeyboardListener and found that the missing characters events are not fired

Logs
[√] Flutter (Channel stable, 2.2.1, on Microsoft Windows [versão 10.0.19042.985], locale pt-BR)
    • Flutter version 2.2.1 at C:\src\flutter
    • Framework revision 02c026b03c (12 days ago), 2021-05-27 12:24:44 -0700
    • Engine revision 0fdb562ac8
    • Dart version 2.13.1

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at C:\Users\reni\AppData\Local\Android\sdk
    • Platform android-30, build-tools 30.0.3
    • Java binary at: C:\Program Files\Java\jre1.8.0_291\bin\java
    • Java version Java(TM) SE Runtime Environment (build 1.8.0_291-b10)
    • All Android licenses accepted.

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

[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.9.5)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.9.31229.75
    • Windows 10 SDK version 10.0.19041.0

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).

[√] VS Code (version 1.56.2)
    • VS Code at C:\Users\reni\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.23.0

[√] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [versão 10.0.19042.985]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 90.0.4430.212
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 91.0.864.41

! Doctor found issues in 1 category.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: desktopRunning on desktopa: text inputEntering text in a text field or keyboard related problemse: device-specificOnly manifests on certain devicesengineflutter/engine related. See also e: labels.platform-windowsBuilding on or for Windows specifically

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions