-
-
Notifications
You must be signed in to change notification settings - Fork 915
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug:
Upgrading vom 1.0.0 to 2.1.0 breaks tables with svgs. The svg outside of the table still renders as well as the table without the svg.
HTML to reproduce the issue:
<table>
<colgroup>
<col width="10%" />
<col width="90%" />
</colgroup>
<tr>
<td>
<svg id='svg1' viewBox='0 0 10 10' xmlns='http://www.w3.org/2000/svg'>
<circle r="5" cx="5" cy="5" fill="#00F" opacity="1.0"/>
</svg>
</td>
<td>Lorem ipsum</td>
</tr>
<tr>
<td>
<svg id='svg1' viewBox='0 0 10 10' xmlns='http://www.w3.org/2000/svg'>
<circle r="5" cx="5" cy="5" fill="#FF9800" opacity="1.0"/>
</svg>
</td>
<td>Lorem ipsum</td>
</tr>
</table>
Device details and Flutter/Dart/flutter_html
versions:
Flutter 2.2.2 • channel stable
flutter_html 2.1.0
Stacktrace/Logcat
The relevant error-causing widget was:
LayoutGrid
file:///home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_html-2.1.0/lib/src/layout_element.dart:158:12
The following RenderObject was being processed when the exception was fired: RenderLayoutGrid#08367 relayoutBoundary=up22 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE:
creator: LayoutGrid ← LayoutBuilder ← DecoratedBox ← Padding ← Container ← Semantics ← RichText ←
Text ← SizedBox ← StyledText ← Align ← DecoratedBox ← ⋯
parentData: offset=Offset(0.0, 0.0) (can use size)
constraints: BoxConstraints(0.0<=w<=336.0, 0.0<=h<=Infinity)
size: MISSING
This RenderObject had the following descendants (showing up to depth 5):
child 1: RenderConstrainedBox#1a10e NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
child: RenderDecoratedBox#961b4 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
child: RenderConstrainedBox#19c5e NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
child: RenderPositionedBox#c601a NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
child: RenderConstrainedBox#0443c NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
child 2: RenderConstrainedBox#a0e82 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
child: RenderDecoratedBox#ff7a4 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
child: RenderConstrainedBox#da6ae NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
child: RenderPositionedBox#a0c02 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
child: RenderConstrainedBox#46910 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
child 3: RenderConstrainedBox#b4982 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
child: RenderDecoratedBox#3971b NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
child: RenderConstrainedBox#9abdb NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
child: RenderPositionedBox#64f2c NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
child: RenderConstrainedBox#1d75c NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
child 4: RenderConstrainedBox#349ae NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
child: RenderDecoratedBox#fa975 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
child: RenderConstrainedBox#ea346 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
child: RenderPositionedBox#e8f96 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
child: RenderConstrainedBox#3b46b NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
child 5: RenderConstrainedBox#da04d NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
child: RenderDecoratedBox#cdc57 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
child: RenderConstrainedBox#2be5d NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
child: RenderPositionedBox#c9c06 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
child: RenderConstrainedBox#80eff NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
...(descendants list truncated after 25 lines)
erickok
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working