flutter-quill
flutter-quill copied to clipboard
Adding some kind of identifier for "select header style buttons" configuration in the `childBuilder`'s extra options
Is there an existing issue for this?
- [X] I have searched the existing issues
Use case
I'm adding custom buttons for all the editor's possible styling options (bold, header, etc.), but then I discovered there's no way to differentiate the header style buttons. If I want to put custom buttons, I need to know which button this is (header, h1, h2, or h3) in order to display the correct "icon" and to display if it is selected.
Proposal
I suggest adding a Header enum that consist of header/n, h1, h2 & h3, and adding this and a bool isSelected to QuillToolbarSelectHeaderStyleButtonsExtraOptions.
This is actually a great idea!
Yes please!