Repository navigation
Cursor does not move on entering full-width space in TextField (3.22.0) #149099
Copy link
Copy link
Closed
Closed
Copy link
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: internationalizationSupporting other languages or locales. (aka i18n)Supporting other languages or locales. (aka i18n)a: text inputEntering text in a text field or keyboard related problemsEntering text in a text field or keyboard related problemsc: regressionIt was better in the past than it is nowIt was better in the past than it is nowcustomer: crowdAffects or could affect many people, though not necessarily a specific customer.Affects or could affect many people, though not necessarily a specific customer.found in release: 3.22Found to occur in 3.22Found to occur in 3.22found in release: 3.23Found to occur in 3.23Found to occur in 3.23has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onplatform-iosiOS applications specificallyiOS applications specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-text-inputOwned by Text Input teamOwned by Text Input teamtriaged-text-inputTriaged by Text Input teamTriaged by Text Input team
Description
Steps to reproduce
- Add TextField
- Enter full-width space using the keyboard
Expected results
that the cursor moves
Actual results
The cursor does not move when entering full-width spaces on iOS as shown in the attached video.
It worked in 3.19.6.
Code sample
Code sample
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: Text('TextField Example'),
),
body: TextField(),
),
);
}
}Screenshots or Video
Screenshots / Video demonstration
RPReplay_Final1716701912.MP4
Logs
Logs
[Paste your logs here]Flutter Doctor output
Doctor output
• Platform android-34, build-tools 34.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 15F31d
• CocoaPods version 1.15.2
[✓] 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のコピー2.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 2023.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
• android-studio-dir = /Applications/Android Studio.app
• Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874)
[✓] IntelliJ IDEA Community Edition (version 2021.1)
• IntelliJ at /Applications/IntelliJ IDEA CE.app
• 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
[✓] VS Code (version 1.85.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension can be installed from:
🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[✓] Connected device (4 available)
• xxxxのiPhone (mobile) • 00008120-000675C21E33401E • ios • iOS 17.4.1 21E236
• macOS (desktop) • macos • darwin-arm64 • macOS 14.4.1 23E224 darwin-arm64
• Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin • macOS 14.4.1 23E224 darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 125.0.6422.77
[✓] Network resources
• All expected network resources are available.
• No issues found!Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: internationalizationSupporting other languages or locales. (aka i18n)Supporting other languages or locales. (aka i18n)a: text inputEntering text in a text field or keyboard related problemsEntering text in a text field or keyboard related problemsc: regressionIt was better in the past than it is nowIt was better in the past than it is nowcustomer: crowdAffects or could affect many people, though not necessarily a specific customer.Affects or could affect many people, though not necessarily a specific customer.found in release: 3.22Found to occur in 3.22Found to occur in 3.22found in release: 3.23Found to occur in 3.23Found to occur in 3.23has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onplatform-iosiOS applications specificallyiOS applications specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-text-inputOwned by Text Input teamOwned by Text Input teamtriaged-text-inputTriaged by Text Input teamTriaged by Text Input team
Activity
darshankawar commentedon May 27, 2024
@cafelafe
Is it a Kana input language you are using ? What is the expected behavior upon following the replication steps ?
Can you provide a short video from previous version where it worked ?
cafelafe commentedon May 27, 2024
@darshankawar
Yes, it is a Kana input language
Flutter version 3.19.6 will look like the video below.
RPReplay_Final1716812195.MP4
darshankawar commentedon May 28, 2024
Thanks for the update. Using above details, I was able to verify and replicate the reported behavior. Looks like it is related to unicode text.
Also learned more about full-width space:
Full-width is used for fields where you will need to type Japanese letters (your mail address, etc.)—in which case, the alphanumeric must be input using full-width.Since it worked in latest stable but not in current, I'll label this as regression.
stable, master flutter doctor -v
11 remaining items
koji-1009 commentedon Jun 7, 2024
I have checked the Unicode Zs category and the same problem exists in all codes except
U+0020,U+00A0andU+202F.https://www.compart.com/en/unicode/category/Zs
The behavior of the three characters was compared between Flutter 3.19 and Flutter 3.22. Text is copied and pasted multiple times. Then I type
abc.Flutter 3.19.6
3.19.mov
Flutter 3.22.2
3.22.mov
[-]On iOS, the cursor does not move even if you enter a full-width space in the TextField (3.22.0)[/-][+]Cursor does not move on entering full-width space in TextField (3.22.0)[/+]Update hasTrailingSpaces (#149698)
shiyishiaa commentedon Jun 20, 2024
Update hasTrailingSpaces (flutter#149698)
Fix cursor position when Unicode Zs category is entered in TextField (#…
DaigoWakabayashi commentedon Aug 1, 2024
I encountered the same problem but I can confirm that it has already been fixed in the master channel.
Big thanks to all contributors.
master.mp4
flutter doctor -v
[✓] Flutter (Channel master, 3.24.0-1.0.pre.388, on macOS 14.6 23G80 darwin-arm64, locale en-JP) • Flutter version 3.24.0-1.0.pre.388 on channel master at • Upstream repository https://github.com/flutter/flutter.git • Framework revision f064c3e5c0 (88 minutes ago), 2024-07-31 23:55:31 -0400 • Engine revision f546fef7d7 • Dart version 3.6.0 (build 3.6.0-102.0.dev) • DevTools version 2.37.1 [✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0) • Android SDK at • Platform android-34, build-tools 34.0.0 • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11572160) • All Android licenses accepted. [✓] Xcode - develop for iOS and macOS (Xcode 15.3) • Xcode at /Applications/Xcode-15.3.0.app/Contents/Developer • Build 15E204a • CocoaPods version 1.15.2 [✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome [✓] Android Studio (version 2023.3) • 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.10+0-17.0.10b1087.21-11572160) [✓] VS Code (version 1.91.1) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.92.0 [✓] Connected device (5 available) [✓] Network resources • No issues found!Fix cursor position when Unicode Zs category is entered in TextField (f…
github-actions commentedon Aug 15, 2024
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.Fix cursor position when Unicode Zs category is entered in TextField (f…