andyduke / styled_text_package

Text widget with formatted text using tags. Makes it easier to use formatted text in multilingual applications.
https://pub.dev/packages/styled_text
BSD 3-Clause "New" or "Revised" License
74 stars 48 forks source link

Make the creation of superscript and subscript tags much easier #71

Closed ThomasGysemans closed 12 months ago

ThomasGysemans commented 1 year ago

The builder function of StyledTextWidgetBuilderTag now takes 3 arguments : the context, the attributes (like before) and the textContent of the tag. Something that makes more sense. I added to the examples how to create custom <sup> and <sub> tags.

andyduke commented 12 months ago

@ThomasGysemans Thanks for your suggestion. Could you leave only the code changes related to the added functionality in the PR?

ThomasGysemans commented 12 months ago

Hi @andyduke, this pull request is a big mess, so the easiest solution for me was to create a new branch where I could reorganise the changes correctly. I will close this PR and open a new one based on a different branch. It will make things clearer.

link : https://github.com/andyduke/styled_text_package/pull/72