Skip to content

Korean characters are displayed abnormally in TextField when moved cursor. #29341

@foryou8033j

Description

@foryou8033j

Steps to reproduce

  1. Input some Korean Characters into the TextField
    안녕하세요|

  2. Move cursor to middle of characters
    안녕|하세요

  3. input some characters or numbers whatever
    안녕5|하세요

  4. boom
    안녕하세요5|하세요

Check This

  1. Video
    https://serviceapi.nmv.naver.com/flash/convertIframeTag.nhn?vid=98B4DFE49D13BFBEED4D444D7EAECFCF789A&outKey=V124950047e787575d0585747baa0b9e1633eb84b1000f944d5ac5747baa0b9e1633e&width=544&height=306

  2. TextField Code

TextEditingController _textEditingController = TextEditingController();

return Container(
    color: Colors.transparent,
    padding: EdgeInsets.all(10.0),
    child: Card(
        color: Colors.transparent,
        elevation: 8,
        child: ClipRRect(
            borderRadius: BorderRadius.all(Radius.circular(16.0)),
            child: Container(
              height: 50.0,
              padding: EdgeInsets.symmetric(horizontal: 16.0),
              color: Theme.of(context).accentColor,
              child: TextField(
                decoration: InputDecoration(icon: Icon(Icons.search), border: InputBorder.none, hintStyle: TextStyle(fontSize: 18), hintText: getHintText()),
                textInputAction: TextInputAction.search,
                cursorColor: Colors.black,
                style: TextStyle(fontSize: 18),
                controller: _textEditingController,
                onSubmitted: (text) => handleSearch(context, searched_keyword, text, search_module_srl),
              ),
            ))),
    );

Logs

flutter analyze

There is no `flutter analyze` Error.

flutter doctor -v

[√] Flutter (Channel stable, v1.0.0, on Microsoft Windows [Version 10.0.17134.648], locale ko-KR)
    • Flutter version 1.0.0 at C:\flutter
    • Framework revision 5391447fae (3 months ago), 2018-11-29 19:41:26 -0800
    • Engine revision 7375a0f414
    • Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)

[√] Android toolchain - develop for Android devices (Android SDK 28.0.3)
    • Android SDK at C:\Users\admin\AppData\Local\Android\sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)
    • All Android licenses accepted.

[√] Android Studio (version 3.1)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 29.0.1
    • Dart plugin version 173.4700
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)

[!] VS Code, 64-bit edition (version 1.27.2)
    • VS Code at C:\Program Files\Microsoft VS Code
    • Flutter extension not installed; install from
      https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[√] Connected device (1 available)
    • SM G973N • R39M20E00AJ • android-arm64 • Android 9 (API 28)

! Doctor found issues in 1 category.

This problem only occurs on Android only .. iOS was fine.

Metadata

Metadata

Assignees

Labels

a: text inputEntering text in a text field or keyboard related problemscustomer: producte: device-specificOnly manifests on certain devicesf: material designflutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.platform-androidAndroid applications specifically

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions