Skip to content

[Windows] The IME window follows the right edge of the composing text, differ from native Windows apps #106555

@moko256

Description

@moko256

Steps to Reproduce

  1. Enable Japanese IME from Settings app. (Time & Language -> Language -> Add a language -> Japanese -> Install)
  2. Execute flutter run on the code sample.
  3. Focus center TextField.
  4. Press Win+Space and select "Japanese Microsoft IME".
  5. Toggle "A" to "あ" on taskbar to enable IME composing mode.
  6. Press A key 8 times and press enter. The IME will insert "ああああああああ".
  7. Again, press A key 8 times.

Expected results:
The IME window follows the left edge of the composing text like native Windows apps.

Actual results:
The IME window follows the right edge of the composing text. It is different from native Windows apps.

Flutter app notepad.exe
Code sample
import 'package:flutter/material.dart';

void main() {
  runApp(
    MaterialApp(
      theme: ThemeData.light(),
      darkTheme: ThemeData.dark(),
      home: const Scaffold(
        body: Center(
          child: TextField(
            decoration: InputDecoration(hintText: "Text"),
          ),
        ),
      ),
    ),
  );
}
Logs

No warnings/errors in the log.

Analyzing textediting...
No issues found! (ran in 1.9s)
[✓] Flutter (Channel master, 3.1.0-0.0.pre.1333, on Microsoft Windows [Version 10.0.19044.1766], locale ja-JP)
    • Flutter version 3.1.0-0.0.pre.1333 on channel master at C:\Users\moko256\softwares\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision ce10e6fff2 (3 days ago), 2022-06-21 20:34:05 -0400
    • Engine revision 32c056aeda
    • Dart version 2.18.0 (build 2.18.0-190.0.dev)
    • DevTools version 2.14.0

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at C:\Users\moko256\AppData\Local\Android\sdk
    • Platform android-32, build-tools 30.0.3
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.11+9-b60-7590822)
    • All Android licenses accepted.

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

[✓] Visual Studio - develop for Windows (Visual Studio Community 2019 16.11.15)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.11.32510.428
    • Windows 10 SDK version 10.0.20348.0

[✓] Android Studio (version 2021.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 11.0.11+9-b60-7590822)

[✓] VS Code, 64-bit edition (version 1.68.1)
    • VS Code at C:\Program Files\Microsoft VS Code
    • Flutter extension version 3.24.0

[✓] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.19044.1766]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 102.0.5005.115
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 100.0.1185.29

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

Metadata

Metadata

Assignees

Labels

a: desktopRunning on desktopa: fidelityMatching the OEM platforms bettera: 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.platform-windowsBuilding on or for Windows specifically

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions