Skip to content
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

Multiple Quill Editor in a ListView result in incorrect AutoScroll behavior when text goes behind soft keyboard #2404

Open
1 task done
Mustaqode opened this issue Dec 2, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Mustaqode
Copy link

Is there an existing issue for this?

Flutter Quill version

10.8.5

Steps to reproduce

  1. Add multiple Quill Editors inside a listview (dynamic addition if possible)
  2. Use the common _scrollController for the listview and the Quill Editors
  3. Now type in any one of the quill editors; when it reaches near the keyboard you can see a weird random scroll behavior.

Expected results

The scroll should be just fine like we use the default TextField!

Actual results

The screen scrolls weirdly so that the current cursor goes out of view!!!

Additional Context

Screenshots / Video demonstration

[Upload media here]

Logs
[Paste your logs here]
@Mustaqode Mustaqode added the bug Something isn't working label Dec 2, 2024
@Mustaqode
Copy link
Author

Mustaqode commented Dec 3, 2024

From a discussion in slack =>

Ok let me rephrase it, we have a scrollcontroller for the listview, and we have quill as a part of the listview. We might have 1-10 editors in the screen added dynamically. Quill doesn’t support the basic scroll functionality that normal TextFields have in default, which is scrolling the screen up if the text is obscured by the keyboard; so we need a workaround that uses the main scrollController of the listview with respect to caret position of the editor in focus. So that if the cursor hides behind the keyboard we scroll the list up. Is there any possible workarounds?
Or it will be great if someone fixes it in Quill itself!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant