Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

TextField onChanged method gets invoked twice on API 26 and 27 #78762

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
@Alvarenga1

Description

@Alvarenga1

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: 4

Metadata

Metadata

Assignees

No one assigned

    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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp