Sub6Resources / flutter_html

A Flutter widget for rendering static html as Flutter widgets (Will render over 80 different html tags!)
https://pub.dev/packages/flutter_html
MIT License
1.79k stars 860 forks source link

[BUG] Text size wildly varying in alpha 6 #1170

Closed TheCarpetMerchant closed 1 year ago

TheCarpetMerchant commented 1 year ago

I cannot reproduce the issue, but got screenshots of users with text that's either way too big for some, or way too small for others, in the same widget. It probably has to do with the breaking change regarding either :

There's probably a default value gotten somewhere that can vary according to device or something else.

Sub6Resources commented 1 year ago

Noted. I've recently seen this as well and identified the issue as a dependency on the device pixel density when calculating font sizes. This seems critical so I'll try to get it fixed asap. For now you can use alpha.5 or negate the issue by using a default font size that multiplies by the device's pixel density. Thank you!