fleather
fleather copied to clipboard
Enhancing FleatherToolbar with Customizable Heading Labels for User-Guided Text Formatting
First of all, Thanks for the amazing work on this package.
I propose an enhancement to the FleatherToolbar class to support customizable heading labels. This feature introduces optional parameters: normalLabel, heading1Label, heading2Label, heading3Label, heading4Label, heading5Label, and heading6Label. These parameters allow for the customization of toolbar heading labels, facilitating user guidance in text formatting, such as preset alert text formats. The implementation updates the _headingToText map to utilize these parameters, offering a flexible approach to managing text input formats. This addition aims to improve user experience by enabling more descriptive and context-specific toolbar labels.
I think this would be a good addition with minimal impact but improving the overall flexibility of the package
Edit: I'm not so used to pull requests so my other fix was also included with this one.
I'll remove this and re-add with a clean pull request that also includes the required tests and such
I guess this can be closed @Amir-P? The issue remains but this solution does not fit how the translations work anymore.
Yes, indeed. I'll close this and create an issue for fixing in future. Thanks for pointing this out. @maelchiotti