Repository navigation
Typing with Pinyin-Simplified Input Source while selecting text, the navigation box is positioned incorrectly #137677
Description
Activity
- addedin triagePresently being triaged by the triage teamPresently being triaged by the triage team
on Nov 1, 2023 Hi @fanpei91. Thanks for filing this. I can reproduce this on the latest
masterandstablechannels following the steps highlighted above.
This isn't peculiar to macOS as I can also reproduce this on web.
stable, master flutter doctor -v
[!] Flutter (Channel master, 3.16.0-20.0.pre.33, on macOS 14.0 23A344 darwin-arm64, locale en-NG) • Flutter version 3.16.0-20.0.pre.33 on channel master at /Users/damilolaalimi/fvm/versions/master ! Warning: `dart` on your path resolves to /opt/homebrew/Cellar/dart/3.1.5/libexec/bin/dart, which is not inside your current Flutter SDK checkout at /Users/damilolaalimi/fvm/versions/master. Consider adding /Users/damilolaalimi/fvm/versions/master/bin to the front of your path. • Upstream repository https://github.com/flutter/flutter.git • Framework revision 1333e16a4a (8 hours ago), 2023-10-31 23:26:23 -0400 • Engine revision a0ac6b432c • Dart version 3.3.0 (build 3.3.0-83.0.dev) • DevTools version 2.28.1 • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades. [✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0) • Android SDK at /Users/damilolaalimi/Library/Android/sdk • Platform android-34, build-tools 34.0.0 • ANDROID_HOME = /Users/damilolaalimi/Library/Android/sdk • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694) • All Android licenses accepted. [✓] Xcode - develop for iOS and macOS (Xcode 15.0.1) • Xcode at /Applications/Xcode.app/Contents/Developer • Build 15A507 • CocoaPods version 1.12.1 [✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome [✓] Android Studio (version 2022.2) • Android Studio at /Applications/Android Studio.app/Contents • 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.6+0-17.0.6b802.4-9586694) [!] Android Studio (version unknown) • Android Studio at /Users/damilolaalimi/Downloads/Android Studio Preview.app/Contents • 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 ✗ Unable to determine Android Studio version. • Java version OpenJDK Runtime Environment (build 17.0.7+0-17.0.7b1000.6-10550314) [✓] VS Code (version 1.83.1) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.50.0 [✓] VS Code (version 1.83.1) • VS Code at /Users/damilolaalimi/Downloads/Visual Studio Code.app/Contents • Flutter extension version 3.50.0 [✓] Connected device (3 available) • Damilola’s iPhone (mobile) • 00008110-001964480AE1801E • ios • iOS 17.0.2 21A351 • macOS (desktop) • macos • darwin-arm64 • macOS 14.0 23A344 darwin-arm64 • Chrome (web) • chrome • web-javascript • Google Chrome 118.0.5993.117 [✓] Network resources • All expected network resources are available. ! Doctor found issues in 2 categories.[!] Flutter (Channel stable, 3.13.9, on macOS 14.0 23A344 darwin-arm64, locale en-NG) • Flutter version 3.13.9 on channel stable at /Users/damilolaalimi/sdks/flutter ! Warning: `dart` on your path resolves to /opt/homebrew/Cellar/dart/3.1.5/libexec/bin/dart, which is not inside your current Flutter SDK checkout at /Users/damilolaalimi/sdks/flutter. Consider adding /Users/damilolaalimi/sdks/flutter/bin to the front of your path. • Upstream repository https://github.com/flutter/flutter.git • Framework revision d211f42860 (7 days ago), 2023-10-25 13:42:25 -0700 • Engine revision 0545f8705d • Dart version 3.1.5 • DevTools version 2.25.0 • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades. [✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0) • Android SDK at /Users/damilolaalimi/Library/Android/sdk • Platform android-34, build-tools 34.0.0 • ANDROID_HOME = /Users/damilolaalimi/Library/Android/sdk • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694) • All Android licenses accepted. [✓] Xcode - develop for iOS and macOS (Xcode 15.0.1) • Xcode at /Applications/Xcode.app/Contents/Developer • Build 15A507 • CocoaPods version 1.12.1 [✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome [✓] Android Studio (version 2022.2) • Android Studio at /Applications/Android Studio.app/Contents • 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.6+0-17.0.6b802.4-9586694) [!] Android Studio (version unknown) • Android Studio at /Users/damilolaalimi/Downloads/Android Studio Preview.app/Contents • 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 ✗ Unable to determine Android Studio version. • Java version OpenJDK Runtime Environment (build 17.0.7+0-17.0.7b1000.6-10550314) [✓] VS Code (version 1.83.1) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.50.0 [✓] VS Code (version 1.83.1) • VS Code at /Users/damilolaalimi/Downloads/Visual Studio Code.app/Contents • Flutter extension version 3.50.0 [✓] Connected device (3 available) • Damilola’s iPhone (mobile) • 00008110-001964480AE1801E • ios • iOS 17.0.2 21A351 • macOS (desktop) • macos • darwin-arm64 • macOS 14.0 23A344 darwin-arm64 • Chrome (web) • chrome • web-javascript • Google Chrome 118.0.5993.117 [✓] Network resources • All expected network resources are available. ! Doctor found issues in 2 categories.Reacted by FAN PEI- changed the title
[-][macOS] Typing with Pinyin-Simplified Input Source while selecting text, the navigation box is positioned incorrectly[/-][+]Typing with Pinyin-Simplified Input Source while selecting text, the navigation box is positioned incorrectly[/+]on Nov 1, 2023 - addeda: internationalizationSupporting other languages or locales. (aka i18n)Supporting other languages or locales. (aka i18n)has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onfound in release: 3.13Found to occur in 3.13Found to occur in 3.13found in release: 3.16Found to occur in 3.16Found to occur in 3.16a: text inputEntering text in a text field or keyboard related problemsEntering text in a text field or keyboard related problemsa: desktopRunning on desktopRunning on desktopand removedin triagePresently being triaged by the triage teamPresently being triaged by the triage team
on Nov 1, 2023 This looks like it's using the final index of the selection area instead of the first index.
- addedP2Important issues not at the top of the work listImportant issues not at the top of the work list
on Nov 2, 2023 7 remaining items
@cbracken The bug is still here. See the following video:
Screen.Recording.2023-11-04.at.17.08.48.mov
I expected your solution, and I tried your solution before you. The solution can't fix the bug.
This bug is not fixed. Please reopen this issue.
Hi @fanpei91. You have to switch to the latest
masterchannel 3.17.0-1.0.pre.60 to see this. I can see this has been fixed there.Screen.Recording.2023-11-07.at.09.58.23.mov
- addedr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer version
on Nov 7, 2023 I switched to master. Your demonstration in the video is not the same as mine. You have to use my example code, because the Center widget will influence the result, and you have to select more lines of text.
The more lines of text, the more wrong position.
@fanpei91 nice catch - you're correct.
My patch fixed the horizontal positioning for the bulk of scenarios but in the case where editing the text causes the size/position of the textfield itself to be changed and thereby causes the cursor to be displaced, the position will still be incorrect.
A fix for this is relatively straightforward but likely to get lower priority since affects a pretty small subset of cases, and moving the entire widget around as the user types is a much narrower subset of cases than the usual case of relatively static textfields.
The even more extreme case where the user is doing text input in a textfield that is being animated around the screen is something I suspect we would not work on.
- removedr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer version
on Nov 8, 2023 - addedplatform-macosBuilding on or for macOS specificallyBuilding on or for macOS specificallyteam-macosOwned by the macOS platform teamOwned by the macOS platform teamand removed
on Jun 6, 2024 The
triaged-desktoplabel is irrelevant if there is noteam-desktoplabel orfyi-desktoplabel.- addedtriaged-macosTriaged by the macOS platform teamTriaged by the macOS platform team
on Jun 7, 2024
Is there an existing issue for this?
Steps to reproduce
See the attached video and screenshots.
Expected results
The Input Source navigation box should be below the typing text.
Actual results
Wrong position.
Code sample
Code sample
Screenshots or Video
Video
Screen.Recording.2023-11-01.at.17.10.08.mov
Screenshots
Logs
Logs
[Paste your logs here]Flutter Doctor output
Doctor output