You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But is it possible to use them in the same way you would use any other attribute in the QuillToolbarToogleStyleButton? Using a custom attribute in it will obviously result in an error due to the fact the it has no default tooltip and icon.
Therefore, I've tried creating my own custom toggle button based on the toogle style button (exact 1:1 copy, except for the fact that the default tooltip and icon are provided). The issue I'm running into is that the button automatically toggles off after typing the first character. Using one of the built in the package attributes (BoldAttribute etc.) in my custom toggle button works as expected and this bug doesn't persist.
I'm attaching a video of the issue to make it more clear.
Any suggestion on how i can approach this issue?
Thanks in advance
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Documentation says that it is possible to create custom Attributes
https://github.com/singerdmx/flutter-quill/blob/master/doc/attribute_introduction.md :
But is it possible to use them in the same way you would use any other attribute in the QuillToolbarToogleStyleButton? Using a custom attribute in it will obviously result in an error due to the fact the it has no default tooltip and icon.
Therefore, I've tried creating my own custom toggle button based on the toogle style button (exact 1:1 copy, except for the fact that the default tooltip and icon are provided). The issue I'm running into is that the button automatically toggles off after typing the first character. Using one of the built in the package attributes (BoldAttribute etc.) in my custom toggle button works as expected and this bug doesn't persist.
I'm attaching a video of the issue to make it more clear.
Any suggestion on how i can approach this issue?
Thanks in advance
toggle_issue.mp4
Beta Was this translation helpful? Give feedback.
All reactions