-
-
Notifications
You must be signed in to change notification settings - Fork 896
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
[BUG] Table rows not shown correctly #1383
Labels
bug
Something isn't working
Comments
For test purpuses I added a
Where do the spaces come from? |
If I add a |
It's coming from the p tags. Seems like a bug (regression). |
I tried to find a workaround, removing the styles: customRender: {
"td": (context, parsedChild) {
if (parsedChild is ContainerSpan) {
return ContainerSpan(
newContext: context,
style: Style(),
shrinkWrap: parsedChild.shrinkWrap,
children: parsedChild.children);
}
return parsedChild;
},
"p": (context, parsedChild) {
if (parsedChild is ContainerSpan) {
return ContainerSpan(
newContext: context,
style: Style(backgroundColor: Colors.orange),
shrinkWrap: parsedChild.shrinkWrap,
children: parsedChild.children);
}
return parsedChild;
},
"span": (context, parsedChild) {
if (parsedChild is ContainerSpan) {
return ContainerSpan(
newContext: context,
style: Style(backgroundColor: Colors.yellow),
shrinkWrap: parsedChild.shrinkWrap,
children: parsedChild.children);
}
return parsedChild;
}
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.7.10, on Microsoft Windows [Version 10.0.19044.3448], locale de-DE)
[X] Windows Version (Unable to confirm if installed Windows version is 10 or greater)
Checking Android licenses is taking an unexpectedly long time...[√] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.7.4)
[√] Android Studio (version 2022.1)
[√] VS Code, 64-bit edition (version 1.82.2)
[√] Connected device (5 available)
[√] HTTP Host Availability
! Doctor found issues in 1 category.
flutter_html version 2.2.1
Problem: Tables are rendered with padding/margin?
Expected output
HTML sample
The text was updated successfully, but these errors were encountered: