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
Create a QuillToolbar and add a H1 through H6 ToggleStyleButton to the toolbar (See code sample attached). If you manually set the iconData attribute, you will avoid the error, but neither material nor cupertino icons contains the H1-H6 icons.
It looks like header styles were never expected to be implemented as toggle buttons.
To avoid the exception, you will need to provide iconData as well as tooltip.
The buttons will not give you the expected result since _getIsToggled also needs an update.
I have made changes that should address that issue and can issue a PR as part of other changes in progress.
Can I ask why you want headers as individual buttons? The toolbar is already very long.
As a new contributor I am finding that the code is highly complex and not always easy to use (or fix problems). There are a tremendous number of options and not all options work or are obvious.
Is there an existing issue for this?
Flutter Quill version
9.3.11
Steps to reproduce
Create a QuillToolbar and add a
H1
throughH6
ToggleStyleButton to the toolbar (See code sample attached). If you manually set the iconData attribute, you will avoid the error, but neither material nor cupertino icons contains the H1-H6 icons.Expected results
Quill Toolbar renders with H1 - H6 as configured.
Actual results
App crashes with the following error:
Code sample
Code sample
Screenshots or Video
Screenshots / Video demonstration
[Upload media here]
Logs
Logs
The text was updated successfully, but these errors were encountered: