Skip to content

[BUG] The div tag creates extra space #1218

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
balaji101010 opened this issue Jan 27, 2023 · 2 comments
Closed

[BUG] The div tag creates extra space #1218

balaji101010 opened this issue Jan 27, 2023 · 2 comments
Labels
bug Something isn't working css Enhancements/issues with css properties whitespace issues

Comments

@balaji101010
Copy link

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!
@balaji101010 balaji101010 added the bug Something isn't working label Jan 27, 2023
@Sub6Resources Sub6Resources added css Enhancements/issues with css properties whitespace issues in-triage Issue's that I've seen but haven't had a chance to thoroughly review and/or categorize labels May 9, 2023
@Sub6Resources
Copy link
Owner

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 Sub6Resources removed the in-triage Issue's that I've seen but haven't had a chance to thoroughly review and/or categorize label May 15, 2023
@Sub6Resources
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working css Enhancements/issues with css properties whitespace issues
Projects
None yet
Development

No branches or pull requests

2 participants