Skip to content

Flutter will crash when use TextField to input Chinese with maxLength #25511

@00Zion00

Description

@00Zion00

Environment

iOS 12.1

image

Language

Chinese

Sample Code

TextField(
   maxLength: 2,
)

Very easy to reappear,such as input “hh” when use Chinese input method,it will crash without any log in Android Studio

image

When I input the second "h", the value in the editable_text.dart is this

image

Then I debug step by step, it crash in platform_messages.dart

image

Finally I get some log from Mac Controller.app

image

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 problemsc: crashStack traces logged to the consoleengineflutter/engine related. See also e: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions