-
-
Notifications
You must be signed in to change notification settings - Fork 889
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
Table parsing error. If merging cells in HTML5 is not supported, no error should be reported #213
Comments
Thank you for reporting this. Would you mind posting your HTML code so that I can better support merged cells? |
一、接收调剂考生的学科
|
style: {
Can adding line styles to tables be optimized |
I added +1 because I think I'm encountering (probably) the same problem. I have HTML like below: <table>
<colgroup>
<col width="30%"/>
<col width="70%"/>
</colgroup>
<tr>
<th>AAAAAAAAAAAAAAAAAAAAAAAAAAAA</th>
<td>B</td>
</tr>
<tr>
<th>A</th>
<td>BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB</td>
</tr>
</table> And my styles are like this: final Map<String, Style> htmlStyles = {
'table': Style(
backgroundColor: MyColors.backGroundColor,
border: Border.all(color: MyColors.surfaceOverlay),
),
'th': Style(
display: Display.INLINE,
alignment: Alignment.center,
backgroundColor: MyColors.lightGrey,
padding: const EdgeInsets.all(8),
),
'td': Style(
display: Display.INLINE,
backgroundColor: MyColors.backGroundColor,
padding: const EdgeInsets.all(8),
),
}; But I expected the left-bottom cell (having |
@canisterism your issue is unrelated in the sense that you do not have cells spanning multiple rows or columns. Instead your issue arrises simply because the abckground is set on the text style and not on the whole table cell. |
@erickok |
Thing is, flutter_html uses Flutter's own Table widget and that doesn't support colspan-like irregular cells (flutter/flutter:21594). The staggered_grid package is one alternative we might consider. |
Duplicate of #242 |
This kind of problem hopes to be solved as soon as possible
这种问题希望尽快解决 .
The text was updated successfully, but these errors were encountered: