-
Notifications
You must be signed in to change notification settings - Fork 920
Fix caret not auto scroll to visible when page has multiple editors #2570
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
Conversation
2b92596
to
698d0b0
Compare
Mostly works, but ran into a bit of an issue, it does not auto-scroll on the first request focus until I start typing: Screen.Recording.2025-05-18.at.1.54.38.in.the.morning.mov |
Handle didChangeMetrics fix the issue: Screen.Recording.2025-05-18.at.2.08.21.in.the.morning.movReference: |
@EchoEllet I have released this to my production app for a few days now. If you have any concerns about it being merged, let me know. I will refactor accordingly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are a lot of changes that I'm not related to at the moment, I'm not able to work on the project for a while (again).
Unfortunately, I can't take responsibility for reviewing PRs at this point.
Hopefully, fellow maintainers will review it at some point.
@EchoEllet I understand. I am confident about it, and I think if other contributors do it, it will likely output the same result. Let me know what I can do. |
Seem like quality check no longer work because flutter just release new stable version. Let me fix that. |
warning • Doc imports can't have show or hide combinators • lib/src/editor/config/editor_config.dart:1:42 • doc_import_cannot_have_combinators warning • Doc imports can't have show or hide combinators • lib/src/toolbar/config/buttons/link_style_options.dart:1:45 • doc_import_cannot_have_combinators Solution is to remove 'show', just @docImport '../path' is enough to import and make type clickable in comment. This issue raise latest flutter 3.32.0
@EchoEllet shall we merge this? |
I'm not able to review it in a reasonable time frame, sorry but I can't confirm my review. Please make the call. |
How can I implement this? I still have this problem. Thanks a lot! |
You can point to the master branch directly. |
It is working, thanks a lot for the work! However, the cursor scrolls behind/under the custom toolbar. Auto-scroll only accounts for the keyboard height, not additional UI elements above it. |
Description
For this fix, I copied all code based on flutter
editable_text.dart
to have the same behavior. I have pushed multiple commits to track the changes:Related Issues
Fixed Demo
Screen.Recording.2025-05-18.at.1.41.39.in.the.morning.mp4
Type of Change