- Notifications
You must be signed in to change notification settings - Fork29.7k
Open
Labels
P2Important issues not at the top of the work lista: text inputEntering text in a text field or keyboard related problemse: OS-version specificAffects only some versions of the relevant operating systemengineflutter/engine related. See also e: labels.f: material designflutter/packages/flutter/material repository.found in release: 2.0Found to occur in 2.0found in release: 2.1Found to occur in 2.1frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onplatform-androidAndroid applications specificallyteam-androidOwned by Android platform teamtriaged-androidTriaged by Android platform team
Description
The issue is when numbers or simple quotes are typed into a TextField the onChanged method is invoked twice, as opposed to typing any letter in the alphabet where it is only invoked once. The issue was found when using an emulator withAndroid API 26 and 27 but not on API 30.
Flutter doctor output
Doctor summary (to see all details, run flutter doctor -v):[√] Flutter (Channel stable, 2.0.3, on Microsoft Windows [Version 10.0.18363.1316], locale en-AU)[!] Android toolchain - develop for Android devices (Android SDK version 30.0.2) ! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses[√] Chrome - develop for the web[√] Android Studio (version 4.1.0)[√] VS Code, 64-bit edition (version 1.54.2)[√] Connected device (2 available)! Doctor found issues in 1 category.The issue can be reproduced by creating a new flutter project with "flutter create ." and including the code below in any part of the body:
TextField( onChanged: (text) { print("Text field: $text"); }, ),Console output after typing "r", "backspace", "4"on the emulator keyboard.
I/flutter (31077): Text field: rI/flutter (31077): Text field:I/flutter (31077): Text field: 4I/flutter (31077): Text field: 4Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work lista: text inputEntering text in a text field or keyboard related problemse: OS-version specificAffects only some versions of the relevant operating systemengineflutter/engine related. See also e: labels.f: material designflutter/packages/flutter/material repository.found in release: 2.0Found to occur in 2.0found in release: 2.1Found to occur in 2.1frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onplatform-androidAndroid applications specificallyteam-androidOwned by Android platform teamtriaged-androidTriaged by Android platform team