-
Notifications
You must be signed in to change notification settings - Fork 26.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
textField widget with rtl input problem #47745
Comments
Hi @phoelapyae69 possibly related to #39755 |
[✓] Flutter (Channel dev, v1.13.2, on Mac OS X 10.15.2 19C57, locale en-IL) [✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2) [✓] Xcode - develop for iOS and macOS (Xcode 11.2.1) [✓] Chrome - develop for the web [✓] Android Studio (version 3.5) [!] IntelliJ IDEA Ultimate Edition (version 2018.1.5) [!] VS Code (version 1.40.2) [✓] Connected device (2 available) ! Doctor found issues in 2 categories. |
btw - the link works fine for me please try again |
shorturl.at/jrL26 - doesn't work for me either. Maybe just provide the complete link |
https://imgur.com/VbYZq6B |
Thanks, that video link works. I updated the issue's description. |
CC @nturgut |
Thanks for filing the issue and the video. I'll have a look. |
I had to create a special widget so the deletion in RTL text input will work after you reach a space ' '. |
Im having the exact same issue... any work around? |
Enjoy my ugly code.... (that works. also with an 'enter' detection)
|
Cursor issue flutter doctor -v
|
Im having the problem as shown: the cursor is not on the right spot, and I can't pick a certain letter or area of the text to add something on the middle: Also, i cant erase more than one word, after that the cursor just stop and don't erase... the code is basically this: (isHebrew is a boolean that holds if the text being typed is in Hebrew) Any idea how to fix that? (i need a text input that can receive English and Hebrew text...) |
you can set the cursor position to the opposite position every time it changes. (listen with a controller) |
Downgrading to v1.12.13+hotfix.9 makes everything fine. Tried with master, dev and stable 1.17.1. The RTL issue still exists in these environments. |
1.12.13+hotfix.9 is stable, how is it possible it even supports web? The problem is about the web platform. |
I havn't tried for web, but the same kind of problem persist in Mobile Apps. In RTL, after adding a space the cursor doesn't moves and unable to delete the characters type before adding space. |
Any responses? |
No ، With every update I check the issue and unfortunately it still persists |
@nizar-khan @HansMuller @mdebbar @kf6gpe @ferhatb @mahmoudsalah37 There is an option to solved; it's not the best but better than nothing. |
Nice man |
@mohamadlounnas Thank you bro, I'll try - but it looks like it will work, anyway thank you very much for this solution |
What I've noticed is that in
which later gets decoded in
Observation: Can anyone point me to where the native implementation of |
@idotalmor 47745.mov
Can you confirm if this is working as expected now using latest version ? flutter doctor -v
|
moved to react on web implementation. much mature and production-ready.🤙 |
Closing this as not reproducible per my earlier comment #47745 (comment) and based on issue author's above comment. Could everyone who still has this problem please file a new issue with the exact description of what happens, logs, and the output of |
This is still not fully fixed. It seems that the RTL on the web is fixed for RTL keyboards (like Arabic/Hebrew) but not for LTR ones (like English). Here's the example on Flutter 2.0.1: Notice that the cursor is in a very weird place, ALMOST aligned to the right but not exactly (its 1, 2 chars before it). Can we please reopen this issue? Logging in to our application using an English keyboard is the first thing users do, having the cursor in such a weird position will have a huge impact on the overall impression... A similar thing happens when you use RTL keyboard in LTR locale (much less popular case though). |
Thanks! @MarcinusX, I can confirm the issue flutter doctor -v[✓] Flutter (Channel stable, 2.0.1, on macOS 11.2.2 20D80 darwin-x64, locale en-GB)
• Flutter version 2.0.1 at /Users/tahatesser/Code/flutter_stable
• Framework revision c5a4b4029c (5 days ago), 2021-03-04 09:47:48 -0800
• Engine revision 40441def69
• Dart version 2.12.0
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at /Volumes/Extreme/SDK
• Platform android-30, build-tools 30.0.3
• ANDROID_HOME = /Volumes/Extreme/SDK
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS
• Xcode at /Volumes/Extreme/Xcode.app/Contents/Developer
• Xcode 12.4, Build version 12D4e
• CocoaPods version 1.10.1
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 4.1)
• 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 1.8.0_242-release-1644-b3-6915495)
[✓] VS Code (version 1.54.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.20.0
[✓] Connected device (4 available)
• SM M025F (mobile) • R9ZR205XX0A • android-arm • Android 10 (API 29)
• Taha’s iPad (mobile) • 00008020-000255113EE8402E • ios • iOS 14.4
• macOS (desktop) • macos • darwin-x64 • macOS 11.2.2 20D80 darwin-x64
• Chrome (web) • chrome • web-javascript • Google Chrome 89.0.4389.82
• No issues found! [✓] Flutter (Channel master, 2.1.0-11.0.pre.165, on macOS 11.2.2 20D80 darwin-x64, locale en-GB)
• Flutter version 2.1.0-11.0.pre.165 at /Users/tahatesser/Code/flutter_master
• Framework revision 698d438960 (5 hours ago), 2021-03-09 07:53:21 +0100
• Engine revision 2441c476a6
• Dart version 2.13.0 (build 2.13.0-116.0.dev)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at /Volumes/Extreme/SDK
• Platform android-30, build-tools 30.0.3
• ANDROID_HOME = /Volumes/Extreme/SDK
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS
• Xcode at /Volumes/Extreme/Xcode.app/Contents/Developer
• Xcode 12.4, Build version 12D4e
• CocoaPods version 1.10.1
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 4.1)
• 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 1.8.0_242-release-1644-b3-6915495)
[✓] VS Code (version 1.54.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.20.0
[✓] Connected device (4 available)
• SM M025F (mobile) • R9ZR205XX0A • android-arm • Android 10 (API 29)
• Taha’s iPad (mobile) • 00008020-000255113EE8402E • ios • iOS 14.4
• macOS (desktop) • macos • darwin-x64 • macOS 11.2.2 20D80 darwin-x64
• Chrome (web) • chrome • web-javascript • Google Chrome 89.0.4389.82
• No issues found! |
Why is there a "hidden space" character in the string the TextField produces?? It looks like it contains 8 chars, but it actually contains 9. which made the string comparison a nightmare, that hidden character doesn't go away with ' ' replacement and as it is saved in the DB it's obviously problematic Same happens with this one: |
@MarcinusX would you mind opening a new issue instead of re-opening this one? Your issue is slightly different from the one reported here (mention me on the new issue so I'm aware). @mikron123 would you mind opening a separate issue for that with some code sample and more details? Like, is it happening on Android/iOS too? Please mention me on the new issue. |
@mohamadlounnas |
i have the same issue |
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 |
hello,
I am a flutter developer for quite some time, and I am building a flutter web page with textfield widgets for input some Hebrew text.
the problem is with the cursor.
we have 2 main issues:
when I am typing in Hebrew and press space the cursor is going to the start of the line
but the real issue is that I can't place the cursor in the right place where the user tapped.
it seems that the cursor is going to the location from the other side (mirror effect) I attached a video which present the issue which I am experiencing.
video:
https://imgur.com/VbYZq6B
The text was updated successfully, but these errors were encountered: