-
-
Notifications
You must be signed in to change notification settings - Fork 876
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
Irregular row lengths in tables throw error #242
Comments
Thank you. I'm aware of the issue and am working on a fix. |
@Sub6Resources I am also facing this issue. Is there a update on its fix or a workaround? @drewbitt I have also tried new-parser branch but still getting the same error. |
This should've been done before 1.0 and the removal of useRichText. It is breaking. |
Same issue here, i'm trying to display an html email with this package and i can't render a lot of them. The workaround for now is that i added "blacklistedElements: ['table']" so that i can render the rest without error but i hope it get fixed. |
facing the same problem here.. and i don't want to remove the table element for a work around |
I gave a short go at this, but the problem is that the lib currently uses Flutter's Table (to great effect) and that widget doesn;t support irregular row or column lengths... So we'd have to swap out the implementation for something that can. |
I am using new-parser branch, but i am still facing this problem. |
Same issue here that Table contains irregular row lengths. I also tried new-parser branch, but not working on my end. I really need this package to parse html data, please help me @Sub6Resources |
Any update? |
Sadly looking at the #323 we can see that it shouldn't come that soon if nobody tries :/ |
For all those looking for a fix on this issue, I think I have a temporary fix until we can get something that is proven to be reliable. ('Trimester1' is part of the table, and that row only had that one element where all the other rows have 3 cells). See the PR for more details on what I did for this temporary fix! |
hello, i have same error, how to fix it? pls help |
Cross-posting from PR #435: I have tried using flutter_layout_grid as well, but that library doesn't seem to support intrinsic heights at all (despite claiming otherwise). Even their examples would not render on mobile Flutter for me, always throwing 'RenderConstrainedBox object was given an infinite size during layout' errors. 🤷 Using Flutter's I considered flutter_staggered_grid_view but that really works just when it is it's own scroll container. spannable_grid looked promising too, but it actually fixes every cell in the grid to be rectangular. The Flutter isssue asking for colspan/rowspan support is totally dormant. It also doesn't mention any 3th party alternatives. 😡 I guess we have to build something custom... |
Actually... I got something working using flutter_layout_grid; see master...vrtdev:feature/irregular-tables It probably does not support all styling options yet, and the behaviour doesn't exactly match the original implementation, but it certianly is getting close. Would love feedback. |
Looks great! I think the best way to showcase this would be to add a border around the cells, but then again that's a styling thing. What exactly doesn't match the original? Looks fine from the picture. |
The vertical alignment of the cells is different. We might get away with not supporting vertical alignment in cells, but as you can see in the screenshot the bottom line (which is set on the At the same time, I am realistic enough to not expect a 100% support of all the things html tables can do. But in the end that is up to this project's owners. |
Latest
new-parser
branch.Using rich text fixes the issue.
Example:
That's a valid HTML table.
The text was updated successfully, but these errors were encountered: