-
Notifications
You must be signed in to change notification settings - Fork 857
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
Added an option for ClipboardPaste button to disable ClipboardMonitor #2427
Conversation
Thanks for your contribution.
A breaking change is not only the kind that requires users to update their code to compile, but to also keep the current state without any behavior breaking. Changing the default of a value is also a breaking change. What would happen if the user pressed the paste button and there was nothing to paste? I suggest providing the option to override the I'm with the idea of disabling something that's causing issues. However, users should have the option to revert to the old behavior in case they still want |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
@EchoEllet can we merge this? |
This is still a breaking change.
This option should be only in the button config, not the toolbar config.
I will work on it soon. However, it's not a high-priorty issue given that I have disabled the buttons by default (revert to the default behavior). |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as resolved.
This comment was marked as resolved.
* feat!: add config class for clipboard action buttons * docs: update CHANGELOG and migration guide * chore: add a TODO for #2427
Could you confirm if you have rebased your branch? $ git remote add upstream [email protected]:singerdmx/flutter-quill.git
$ git fetch upstream
$ git rebase upstream/master # Fix conflicts if any. Follow the git CLI instructions.
$ git push --force # Force push if conflicts were solved or didn't occur. |
1f273f1
to
1995e1e
Compare
This comment was marked as resolved.
This comment was marked as resolved.
…ates that this is only applicable for the paste button
fb685e2
to
a12b4f4
Compare
Rebased again.
Added const to QuillToolbarClipboardButton constructor. |
Thank you for your patience and contributions, please consider creating issues or reaching out before working on new changes. Have a good day! |
Description
According to the issue #2421 ClipboardMonitor was causing lag if "paste" button was enabled in QuillSimpleToolbar.
That was because of the periodic 1 second check for Clipboard content. In case with large strings or images in clipboard, it would lag out the application and slow down everything drastically.
This is not a breaking change, however it will change the behavior of availability for "paste" button for QuillSimpleToolbar since it always be enabled (except of readonly mode).
Related Issues
Type of Change