Skip to content

When entering Korean, the text cursor is behind single space. #140739

Description

@n7484443

Steps to reproduce

just input korean text

example:
ㅅ ㅐ ㅁ ㅍ ㅡ ㄹ

Expected results

2023-12-30.022943.mp4

This video is the behavior of a typical chrome input window.
The text cursor must always be behind like english.

Actual results

2023-12-30.031357.mp4

The text cursor is drawn in front of single space, but it acts as if it is working as normal as English.
Perhaps only the location where the text cursor is drawn is wrong.

Code sample

Code sample
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      title: 'Flutter Demo',
      home: Scaffold(
        body: TextFieldInputTest(),
      ),
    );
  }
}

class TextFieldInputTest extends StatefulWidget {
  const TextFieldInputTest({super.key});

  @override
  State<TextFieldInputTest> createState() => _TextFieldInputTestState();
}

class _TextFieldInputTestState extends State<TextFieldInputTest> {
  final TextEditingController _controller = TextEditingController();

  @override
  void dispose() {
    super.dispose();
    _controller.dispose();
  }

  @override
  Widget build(BuildContext context) {
    return TextField(
      controller: _controller,
    );
  }
}

Screenshots or Video

No response

Logs

No response

Flutter Doctor output

PS E:\github\untitled> flutter doctor -v
[√] Flutter (Channel master, 3.18.0-18.0.pre.46, on Microsoft Windows [Version 10.0.23606.1000], locale ko-KR)
• Flutter version 3.18.0-18.0.pre.46 on channel master at C:\Users\kimJuhwan\Documents\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 7c9c170 (6 hours ago), 2023-12-29 07:40:37 -0500
• Engine revision ea4fb2c
• Dart version 3.3.0 (build 3.3.0-272.0.dev)
• DevTools version 2.31.0-dev.0

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
• Android SDK at C:\Users\kimJuhwan\AppData\Local\Android\Sdk
• Platform android-33, build-tools 33.0.1
• ANDROID_SDK_ROOT = C:\Users\kimJuhwan\AppData\Local\Android\Sdk
• Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
• Java version OpenJDK Runtime Environment (build 17.0.7+0-b2043.56-10550314)
• All Android licenses accepted.

[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.4.3)
• Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
• Visual Studio Community 2022 version 17.4.33205.214
• Windows 10 SDK version 10.0.22000.0

[√] Android Studio (version 2023.1)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 17.0.7+0-b2043.56-10550314)

[√] IntelliJ IDEA Ultimate Edition (version 2023.1)
• IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA 2022.3.1
• Flutter plugin version 74.0.4
• Dart plugin version 231.9392.3

[√] IntelliJ IDEA Ultimate Edition (version 2023.3)
• IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA 2023.2.4
• Flutter plugin version 77.0.1
• Dart plugin version 233.13135.65

[√] Connected device (3 available)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.23606.1000]
• Chrome (web) • chrome • web-javascript • Google Chrome 120.0.6099.110
• Edge (web) • edge • web-javascript • Microsoft Edge 121.0.2277.4

[√] Network resources
• All expected network resources are available.

• No issues found!

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: desktopRunning on desktopa: internationalizationSupporting other languages or locales. (aka i18n)a: text inputEntering text in a text field or keyboard related problemsengineflutter/engine related. See also e: labels.found in release: 3.16Found to occur in 3.16found in release: 3.18Found to occur in 3.18has reproducible stepsThe issue has been confirmed reproducible and is ready to work onplatform-windowsBuilding on or for Windows specificallyteam-windowsOwned by the Windows platform teamtriaged-windowsTriaged by the Windows platform team

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions