fleather
fleather copied to clipboard
Allow to customize the appearance of every toolbar buttons
Is your feature request related to a problem? Please describe.
I can easily customize the appearance of ToggleStyleButton
s thanks to the childBuilder
parameter. However, some other buttons are hardcoded, such as InsertEmbedButton
, LinkStyleButton
...
Describe the solution you'd like
Provide childBuilder
for every button type.
Or even better: have a unique, generalized ToolbarButton
with that parameter.
Describe alternatives you've considered
I can copy code from Fleather in my app to recreate the buttons, but that's not an optimal solution.
Additional context
I need to change the style of the buttons to make it match my app more closely.
Alternative to providing customizability of buttons might be to add some easy to use methods on the FleatherController that can be used instead of using the built in buttons. For example "FleatherController#insertEmbed" etc. Then these can be used both internally in the library and by users to create custom buttons or customize keyboard shortcuts etc.