-
-
Notifications
You must be signed in to change notification settings - Fork 149
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
Weird behaviour on pressing 'Enter' in an extended_text_field #21
Comments
does it happen in official TextField, it's better to provide a runable demo for this |
I am using the example provided in the repo. PFA the code I am running as a flutter project. |
The official TextField is working fine. Please find the source code of official text field example below. |
this is refer to flutter/flutter#35869 getOffsetForCaret is not right for widgetspan, so i use getBoxesForSelection but it seems that it's not good for "\n" |
flutter/flutter#38474 wait for flutter team to add support |
Thanks for the quick reply :) will surely wait for them to add support. |
i have do a workaround about this issue in extended_text_library, please run packages get, make sure extended_text_library is 0.4.9 version. please tell me if it works. |
Nope it is still failing. I updated extended_text_library and tried it for Example 1. custom toolbar.
|
I could't reproduce, which flutter sdk do you use? i'm in 1.9.5 |
I am using the stable version v1.7.8+hotfix.4 |
gif to reproduce it, will helpful if you have a time |
flutter doctor [√] Android toolchain - develop for Android devices (Android SDK version 28.0.3) |
sure I will make a gif. |
Might be some issue with caching .. I closed everything .. opened the project again .. did a pub get again .. and ran the project .. the issue is no longer there (weird!). Thanks for the fix. Cheers! |
I'm glad to solve it with workaround for now, let us await for official fixing of widgetspan |
On pressing 'Enter' to insert a newline character to the text, the '\n' is inserted to text but the cursor does not move to the next line. It stays on the same line and moves one character back, which was kind of weird. Can you please look into the issue?
The example used is - TextSelectionControls
The text was updated successfully, but these errors were encountered: