-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
flutter/engine
#31200Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: desktopRunning on desktopRunning on desktopa: text inputEntering text in a text field or keyboard related problemsEntering text in a text field or keyboard related problemse: device-specificOnly manifests on certain devicesOnly manifests on certain devicesengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.platform-windowsBuilding on or for Windows specificallyBuilding on or for Windows specifically
Description
Steps to Reproduce
- Run
flutter create barcode_scan. - Create a simple input
TextFormField(
decoration: InputDecoration(labelText: 'Code'),
maxLines: 30,
),
- 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

Result of multiple captures in any application such as VSCode

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.
Ali-Fadaei, mjafartp, sbrsubuvga, fanchou and ekasetiawans
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: desktopRunning on desktopRunning on desktopa: text inputEntering text in a text field or keyboard related problemsEntering text in a text field or keyboard related problemse: device-specificOnly manifests on certain devicesOnly manifests on certain devicesengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.platform-windowsBuilding on or for Windows specificallyBuilding on or for Windows specifically