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
75 stars 48 forks source link

StyledText does not rebuild when setState updates variables. #10

Closed TheObviousChico closed 3 years ago

TheObviousChico commented 3 years ago

I used the widget with the style : StyledText(fontFamily, fontSize and height) properties which gets updated when the user changes these settings but the widget does not adjust to these changes. The hierarchy tree is: Consumer->FutureBuilder->ListView.builder()->ListTile() and within the title property I use the StyledText()

andyduke commented 3 years ago

@TheObviousChico Fixed and posted on pub.dev.

TheObviousChico commented 3 years ago

@TheObviousChico Fixed and posted on pub.dev.

Thanks and greatly appreciated.

TheObviousChico commented 3 years ago

@TheObviousChico Fixed and posted on pub.dev.

The bug has been fix but now when it rebuilds, it now double flashes each time when the screen rebuilds. I tried it with a normal RichText() widget to make sure and it worked normal.

andyduke commented 3 years ago

@TheObviousChico Fixed and published on pub.dev.