flutter_html
flutter_html copied to clipboard
[BUG] line-height display doesn't follow the px unit but shows in multiples.
In version ^3.0.0-beta.2, when using the line-height: 20px property, the displayed height is not 20px. Instead, it appears to be 20 times the original height.
`
Html(
data: "<h2 style=' line-height:1px; '>sample <br> sample</h2>",
)
Html(
data: "<h2 style=' line-height:3px; '>sample <br> sample</h2>",
)
`
3px
1px
In version ^3.0.0-alpha.6
Android
Html( data: "<p style=\"line-height: 2;\">test<br >test2</p>",)
Same here, html will display so much line spaces after upgrading to 3.0.0-beta.2, while 3.0.0-alpha.5 is fine.
Hi, I have meet the same bug.