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.8k stars 874 forks source link

[BUG] The div tag creates extra space #1218

Closed balaji101010 closed 1 year ago

balaji101010 commented 1 year ago
Html(style: {
                  '#': Style(margin: EdgeInsets.zero, padding: EdgeInsets.zero)
                }, data: '''<div><div><div><div><p> Hello There</p></div></div></div></div>'''));

The above code creates extra space on top

Screenshot 2023-01-27 at 3 46 19 PM

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.3.10, on macOS 13.0.1 22A400 darwin-arm, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.3)
[✓] Android Studio (version 2021.3)
[✓] VS Code (version 1.74.2)
[✓] Connected device (3 available)
[✓] HTTP Host Availability

• No issues found!
Sub6Resources commented 1 year ago

Not able to reproduce on 3.0.0-beta.1. Must have fixed the issue during the code cleanup in #1176.

Please let me know if you see this issue again!

Sub6Resources commented 1 year ago

I also should note that I was able to reproduce this on 3.0.0-alpha.6.