Skip to content
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] <p> tags within table results in the HTML widget disappearing #1351

Open
OhTerryTorres opened this issue Jul 31, 2023 · 9 comments
Open
Labels
bug Something isn't working

Comments

@OhTerryTorres
Copy link

════════ Exception caught by rendering library ═════════════════════════════════
The following assertion was thrown during performLayout():
Intrinsics are not available for PlaceholderAlignment.baseline, PlaceholderAlignment.aboveBaseline, or PlaceholderAlignment.belowBaseline.
'package:flutter/src/rendering/paragraph.dart':
paragraph.dart:1
Failed assertion: line 512 pos 13: 'RenderObject.debugCheckingIntrinsics'

2

Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
  https://github.com/flutter/flutter/issues/new?template=2_bug.md

The relevant error-causing widget was
Html
...

HTML to reproduce the issue:
<table><tr><th>Contact</th><th>Country</th></tr><tr><td><p>Maria Anders</p></td><td>Germany</td></tr><tr><td><p>Francisco Chang</p></td><td>Mexico</td></tr></table>

Expected behavior:
<p> tags exert their own style on elements within a table. Or at least are ignored instead of breaking the table.

Screenshots:
Without <p> tags

With <p> tags

A picture of a cute animal (not mandatory but encouraged)

@OhTerryTorres OhTerryTorres added the bug Something isn't working label Jul 31, 2023
@Equirinya
Copy link

Equirinya commented Aug 5, 2023

Facing the same problem

The table can be as simple as:

"

test

"

And some further error message, in case this helps fix the bug:

`======== Exception caught by rendering library =====================================================
The following assertion was thrown during performLayout():
Intrinsics are not available for PlaceholderAlignment.baseline, PlaceholderAlignment.aboveBaseline, or PlaceholderAlignment.belowBaseline.
'package:flutter/src/rendering/paragraph.dart':
Failed assertion: line 499 pos 13: 'RenderObject.debugCheckingIntrinsics'

Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
https://github.com/flutter/flutter/issues/new?template=2_bug.yml

The relevant error-causing widget was:
LayoutGrid LayoutGrid:file:///C:/Users/-/AppData/Local/Pub/Cache/hosted/pub.dev/flutter_html_table-3.0.0-beta.2/lib/flutter_html_table.dart:280:10
When the exception was thrown, this was the stack:
#2 RenderParagraph._canComputeIntrinsics (package:flutter/src/rendering/paragraph.dart:499:13)
#3 RenderParagraph.computeMinIntrinsicWidth (package:flutter/src/rendering/paragraph.dart:438:10)
#4 RenderBox._computeIntrinsicDimension. (package:flutter/src/rendering/box.dart:1409:23)
#5 _LinkedHashMapMixin.putIfAbsent (dart:collection-patch/compact_hash.dart:535:23)
#6 RenderBox._computeIntrinsicDimension (package:flutter/src/rendering/box.dart:1407:57)
#7 RenderBox.getMinIntrinsicWidth (package:flutter/src/rendering/box.dart:1453:12)
#8 RenderPadding.computeMinIntrinsicWidth (package:flutter/src/rendering/shifted_box.dart:166:21)
#9 RenderBox._computeIntrinsicDimension. (package:flutter/src/rendering/box.dart:1409:23)
#10 _LinkedHashMapMixin.putIfAbsent (dart:collection-patch/compact_hash.dart:535:23)
#11 RenderBox._computeIntrinsicDimension (package:flutter/src/rendering/box.dart:1407:57)
#12 RenderBox.getMinIntrinsicWidth (package:flutter/src/rendering/box.dart:1453:12)
#13 RenderProxyBoxMixin.computeMinIntrinsicWidth (package:flutter/src/rendering/proxy_box.dart:74:21)
#14 RenderBox._computeIntrinsicDimension. (package:flutter/src/rendering/box.dart:1409:23)
#15 _LinkedHashMapMixin.putIfAbsent (dart:collection-patch/compact_hash.dart:535:23)
#16 RenderBox._computeIntrinsicDimension (package:flutter/src/rendering/box.dart:1407:57)
#17 RenderBox.getMinIntrinsicWidth (package:flutter/src/rendering/box.dart:1453:12)
#18 RenderCSSBox.computeMinIntrinsicWidth. (package:flutter_html/src/css_box_widget.dart:444:48)
#19 RenderCSSBox.getIntrinsicDimension (package:flutter_html/src/css_box_widget.dart:434:52)
#20 RenderCSSBox.computeMinIntrinsicWidth (package:flutter_html/src/css_box_widget.dart:443:12)
#21 RenderBox._computeIntrinsicDimension. (package:flutter/src/rendering/box.dart:1409:23)
#22 _LinkedHashMapMixin.putIfAbsent (dart:collection-patch/compact_hash.dart:535:23)
#23 RenderBox._computeIntrinsicDimension (package:flutter/src/rendering/box.dart:1407:57)
#24 RenderBox.getMinIntrinsicWidth (package:flutter/src/rendering/box.dart:1453:12)
#25 RenderProxyBoxMixin.computeMinIntrinsicWidth (package:flutter/src/rendering/proxy_box.dart:74:21)
#26 RenderBox._computeIntrinsicDimension. (package:flutter/src/rendering/box.dart:1409:23)
#27 _LinkedHashMapMixin.putIfAbsent (dart:collection-patch/compact_hash.dart:535:23)
#28 RenderBox._computeIntrinsicDimension (package:flutter/src/rendering/box.dart:1407:57)
#29 RenderBox.getMinIntrinsicWidth (package:flutter/src/rendering/box.dart:1453:12)
#30 RenderParagraph._computeChildrenWidthWithMinIntrinsics (package:flutter/src/rendering/paragraph.dart:539:26)
#31 RenderParagraph.computeMinIntrinsicWidth (package:flutter/src/rendering/paragraph.dart:441:5)
#32 RenderBox._computeIntrinsicDimension. (package:flutter/src/rendering/box.dart:1409:23)
#33 _LinkedHashMapMixin.putIfAbsent (dart:collection-patch/compact_hash.dart:535:23)
#34 RenderBox._computeIntrinsicDimension (package:flutter/src/rendering/box.dart:1407:57)
#35 RenderBox.getMinIntrinsicWidth (package:flutter/src/rendering/box.dart:1453:12)
#36 RenderPadding.computeMinIntrinsicWidth (package:flutter/src/rendering/shifted_box.dart:166:21)
#37 RenderBox._computeIntrinsicDimension. (package:flutter/src/rendering/box.dart:1409:23)
#38 _LinkedHashMapMixin.putIfAbsent (dart:collection-patch/compact_hash.dart:535:23)
#39 RenderBox._computeIntrinsicDimension (package:flutter/src/rendering/box.dart:1407:57)
#40 RenderBox.getMinIntrinsicWidth (package:flutter/src/rendering/box.dart:1453:12)
#41 RenderProxyBoxMixin.computeMinIntrinsicWidth (package:flutter/src/rendering/proxy_box.dart:74:21)
#42 RenderBox._computeIntrinsicDimension. (package:flutter/src/rendering/box.dart:1409:23)
#43 _LinkedHashMapMixin.putIfAbsent (dart:collection-patch/compact_hash.dart:535:23)
#44 RenderBox._computeIntrinsicDimension (package:flutter/src/rendering/box.dart:1407:57)
#45 RenderBox.getMinIntrinsicWidth (package:flutter/src/rendering/box.dart:1453:12)
#46 RenderCSSBox.computeMinIntrinsicWidth. (package:flutter_html/src/css_box_widget.dart:444:48)
#47 RenderCSSBox.getIntrinsicDimension (package:flutter_html/src/css_box_widget.dart:434:52)
#48 RenderCSSBox.computeMinIntrinsicWidth (package:flutter_html/src/css_box_widget.dart:443:12)
#49 RenderBox._computeIntrinsicDimension. (package:flutter/src/rendering/box.dart:1409:23)
#50 _LinkedHashMapMixin.putIfAbsent (dart:collection-patch/compact_hash.dart:535:23)
#51 RenderBox._computeIntrinsicDimension (package:flutter/src/rendering/box.dart:1407:57)
#52 RenderBox.getMinIntrinsicWidth (package:flutter/src/rendering/box.dart:1453:12)
#53 RenderShiftedBox.computeMinIntrinsicWidth (package:flutter/src/rendering/shifted_box.dart:34:19)
#54 RenderBox._computeIntrinsicDimension. (package:flutter/src/rendering/box.dart:1409:23)
#55 _LinkedHashMapMixin.putIfAbsent (dart:collection-patch/compact_hash.dart:535:23)
#56 RenderBox._computeIntrinsicDimension (package:flutter/src/rendering/box.dart:1407:57)
#57 RenderBox.getMinIntrinsicWidth (package:flutter/src/rendering/box.dart:1453:12)
#58 RenderProxyBoxMixin.computeMinIntrinsicWidth (package:flutter/src/rendering/proxy_box.dart:74:21)
#59 RenderConstrainedBox.computeMinIntrinsicWidth (package:flutter/src/rendering/proxy_box.dart:246:32)
#60 RenderBox._computeIntrinsicDimension. (package:flutter/src/rendering/box.dart:1409:23)
#61 _LinkedHashMapMixin.putIfAbsent (dart:collection-patch/compact_hash.dart:535:23)
#62 RenderBox._computeIntrinsicDimension (package:flutter/src/rendering/box.dart:1407:57)
#63 RenderBox.getMinIntrinsicWidth (package:flutter/src/rendering/box.dart:1453:12)
#64 RenderPadding.computeMinIntrinsicWidth (package:flutter/src/rendering/shifted_box.dart:166:21)
#65 RenderBox._computeIntrinsicDimension. (package:flutter/src/rendering/box.dart:1409:23)
#66 _LinkedHashMapMixin.putIfAbsent (dart:collection-patch/compact_hash.dart:535:23)
#67 RenderBox._computeIntrinsicDimension (package:flutter/src/rendering/box.dart:1407:57)
#68 RenderBox.getMinIntrinsicWidth (package:flutter/src/rendering/box.dart:1453:12)
#69 RenderProxyBoxMixin.computeMinIntrinsicWidth (package:flutter/src/rendering/proxy_box.dart:74:21)
#70 RenderBox._computeIntrinsicDimension. (package:flutter/src/rendering/box.dart:1409:23)
#71 _LinkedHashMapMixin.putIfAbsent (dart:collection-patch/compact_hash.dart:535:23)
#72 RenderBox._computeIntrinsicDimension (package:flutter/src/rendering/box.dart:1407:57)
#73 RenderBox.getMinIntrinsicWidth (package:flutter/src/rendering/box.dart:1453:12)
#74 RenderCSSBox.computeMinIntrinsicWidth. (package:flutter_html/src/css_box_widget.dart:444:48)
#75 RenderCSSBox.getIntrinsicDimension (package:flutter_html/src/css_box_widget.dart:434:52)
#76 RenderCSSBox.computeMinIntrinsicWidth (package:flutter_html/src/css_box_widget.dart:443:12)
#77 RenderBox._computeIntrinsicDimension. (package:flutter/src/rendering/box.dart:1409:23)
#78 _LinkedHashMapMixin.putIfAbsent (dart:collection-patch/compact_hash.dart:535:23)
#79 RenderBox._computeIntrinsicDimension (package:flutter/src/rendering/box.dart:1407:57)
#80 RenderBox.getMinIntrinsicWidth (package:flutter/src/rendering/box.dart:1453:12)
#81 TrackSize._itemMinIntrinsicSizeOnAxis (package:flutter_layout_grid/src/rendering/track_size.dart:116:16)
#82 IntrinsicContentTrackSize.minIntrinsicSize. (package:flutter_layout_grid/src/rendering/track_size.dart:278:17)
#83 MappedListIterable.elementAt (dart:_internal/iterable.dart:415:31)
#84 ListIterable.reduce (dart:_internal/iterable.dart:182:15)
#85 max (package:quiver/src/iterables/min_max.dart:24:12)
#86 IntrinsicContentTrackSize.minIntrinsicSize (package:flutter_layout_grid/src/rendering/track_size.dart:284:12)
#87 RenderLayoutGrid._resolveIntrinsicTrackSizes (package:flutter_layout_grid/src/rendering/layout_grid.dart:647:57)
#88 RenderLayoutGrid._performTrackSizingInternal (package:flutter_layout_grid/src/rendering/layout_grid.dart:518:5)
#89 RenderLayoutGrid._performTrackSizing (package:flutter_layout_grid/src/rendering/layout_grid.dart:460:20)
#90 RenderLayoutGrid.computeGridSize (package:flutter_layout_grid/src/rendering/layout_grid.dart:419:5)
#91 RenderLayoutGrid.performLayout (package:flutter_layout_grid/src/rendering/layout_grid.dart:317:41)
#92 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#93 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#94 _RenderLayoutBuilder.performLayout (package:flutter/src/widgets/layout_builder.dart:315:14)
#95 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#96 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#97 RenderPadding.performLayout (package:flutter/src/rendering/shifted_box.dart:238:12)
#98 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#99 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#100 RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:122:14)
#101 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#102 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#103 RenderConstrainedBox.performLayout (package:flutter/src/rendering/proxy_box.dart:297:14)
#104 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#105 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#106 ChildLayoutHelper.layoutChild (package:flutter/src/rendering/layout_helper.dart:52:11)
#107 RenderCSSBox._computeSize (package:flutter_html/src/css_box_widget.dart:510:39)
#108 RenderCSSBox.performLayout (package:flutter_html/src/css_box_widget.dart:558:19)
#109 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#110 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#111 RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:122:14)
#112 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#113 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#114 RenderParagraph._layoutChildren (package:flutter/src/rendering/paragraph.dart:678:15)
#115 RenderParagraph.performLayout (package:flutter/src/rendering/paragraph.dart:763:30)
#116 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#117 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#118 RenderPadding.performLayout (package:flutter/src/rendering/shifted_box.dart:238:12)
#119 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#120 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#121 RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:122:14)
#122 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#123 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#124 ChildLayoutHelper.layoutChild (package:flutter/src/rendering/layout_helper.dart:52:11)
#125 RenderCSSBox._computeSize (package:flutter_html/src/css_box_widget.dart:510:39)
#126 RenderCSSBox.performLayout (package:flutter_html/src/css_box_widget.dart:558:19)
#127 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#128 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#129 RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:122:14)
#130 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#131 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#132 RenderParagraph._layoutChildren (package:flutter/src/rendering/paragraph.dart:678:15)
#133 RenderParagraph.performLayout (package:flutter/src/rendering/paragraph.dart:763:30)
#134 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#135 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#136 RenderPadding.performLayout (package:flutter/src/rendering/shifted_box.dart:238:12)
#137 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#138 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#139 RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:122:14)
#140 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#141 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#142 ChildLayoutHelper.layoutChild (package:flutter/src/rendering/layout_helper.dart:52:11)
#143 RenderCSSBox._computeSize (package:flutter_html/src/css_box_widget.dart:510:39)
#144 RenderCSSBox.performLayout (package:flutter_html/src/css_box_widget.dart:558:19)
#145 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#146 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#147 RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:122:14)
#148 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#149 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#150 RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:122:14)
#151 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#152 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#153 RenderSliverList.performLayout (package:flutter/src/rendering/sliver_list.dart:213:28)
#154 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#155 RenderSliverEdgeInsetsPadding.performLayout (package:flutter/src/rendering/sliver_padding.dart:139:12)
#156 RenderSliverPadding.performLayout (package:flutter/src/rendering/sliver_padding.dart:361:11)
#157 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#158 RenderViewportBase.layoutChildSequence (package:flutter/src/rendering/viewport.dart:534:13)
#159 RenderViewport._attemptLayout (package:flutter/src/rendering/viewport.dart:1511:12)
#160 RenderViewport.performLayout (package:flutter/src/rendering/viewport.dart:1420:20)
#161 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#162 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#163 RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:122:14)
#164 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#165 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#166 RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:122:14)
#167 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#168 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#169 RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:122:14)
#170 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#171 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#172 RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:122:14)
#173 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#174 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#175 RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:122:14)
#176 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#177 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#178 RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:122:14)
#179 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#180 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#181 RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:122:14)
#182 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#183 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#184 RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:122:14)
#185 _RenderCustomClip.performLayout (package:flutter/src/rendering/proxy_box.dart:1449:11)
#186 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#187 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#188 MultiChildLayoutDelegate.layoutChild (package:flutter/src/rendering/custom_layout.dart:171:12)
#189 _ScaffoldLayout.performLayout (package:flutter/src/material/scaffold.dart:1056:7)
#190 MultiChildLayoutDelegate._callPerformLayout (package:flutter/src/rendering/custom_layout.dart:235:7)
#191 RenderCustomMultiChildLayoutBox.performLayout (package:flutter/src/rendering/custom_layout.dart:403:14)
#192 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#193 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#194 RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:122:14)
#195 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#196 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#197 RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:122:14)
#198 _RenderCustomClip.performLayout (package:flutter/src/rendering/proxy_box.dart:1449:11)
#199 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#200 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#201 RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:122:14)
#202 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#203 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#204 RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:122:14)
#205 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#206 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#207 RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:122:14)
#208 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#209 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#210 RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:122:14)
#211 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#212 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#213 RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:122:14)
#214 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#215 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#216 RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:122:14)
#217 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#218 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#219 RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:122:14)
#220 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#221 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#222 RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:122:14)
#223 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#224 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#225 RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:122:14)
#226 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#227 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#228 RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:122:14)
#229 RenderOffstage.performLayout (package:flutter/src/rendering/proxy_box.dart:3759:13)
#230 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#231 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#232 RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:122:14)
#233 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#234 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#235 _RenderTheaterMixin.performLayout (package:flutter/src/widgets/overlay.dart:838:15)
#236 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#237 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#238 RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:122:14)
#239 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#240 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#241 RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:122:14)
#242 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#243 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#244 RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:122:14)
#245 RenderOffstage.performLayout (package:flutter/src/rendering/proxy_box.dart:3759:13)
#246 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#247 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#248 ChildLayoutHelper.layoutChild (package:flutter/src/rendering/layout_helper.dart:52:11)
#249 RenderStack._computeSize (package:flutter/src/rendering/stack.dart:580:43)
#250 RenderStack.performLayout (package:flutter/src/rendering/stack.dart:607:12)
#251 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#252 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#253 _RenderLayoutBuilder.performLayout (package:flutter/src/widgets/layout_builder.dart:315:14)
#254 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#255 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#256 MultiChildLayoutDelegate.layoutChild (package:flutter/src/rendering/custom_layout.dart:171:12)
#257 _ScaffoldLayout.performLayout (package:flutter/src/material/scaffold.dart:1056:7)
#258 MultiChildLayoutDelegate._callPerformLayout (package:flutter/src/rendering/custom_layout.dart:235:7)
#259 RenderCustomMultiChildLayoutBox.performLayout (package:flutter/src/rendering/custom_layout.dart:403:14)
#260 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#261 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#262 RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:122:14)
#263 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#264 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#265 RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:122:14)
#266 _RenderCustomClip.performLayout (package:flutter/src/rendering/proxy_box.dart:1449:11)
#267 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#268 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#269 ChildLayoutHelper.layoutChild (package:flutter/src/rendering/layout_helper.dart:52:11)
#270 RenderStack._computeSize (package:flutter/src/rendering/stack.dart:580:43)
#271 RenderStack.performLayout (package:flutter/src/rendering/stack.dart:607:12)
#272 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#273 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#274 ChildLayoutHelper.layoutChild (package:flutter/src/rendering/layout_helper.dart:52:11)
#275 RenderStack._computeSize (package:flutter/src/rendering/stack.dart:580:43)
#276 RenderStack.performLayout (package:flutter/src/rendering/stack.dart:607:12)
#277 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#278 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#279 RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:122:14)
#280 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#281 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#282 RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:122:14)
#283 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#284 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#285 RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:122:14)
#286 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#287 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#288 RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:122:14)
#289 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#290 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#291 RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:122:14)
#292 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#293 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#294 RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:122:14)
#295 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#296 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#297 RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:122:14)
#298 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#299 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#300 RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:122:14)
#301 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#302 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#303 RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:122:14)
#304 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#305 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#306 RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:122:14)
#307 RenderOffstage.performLayout (package:flutter/src/rendering/proxy_box.dart:3759:13)
#308 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#309 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#310 RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:122:14)
#311 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#312 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#313 _RenderTheaterMixin.performLayout (package:flutter/src/widgets/overlay.dart:838:15)
#314 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#315 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#316 RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:122:14)
#317 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#318 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#319 RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:122:14)
#320 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#321 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#322 RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:122:14)
#323 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#324 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#325 RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:122:14)
#326 RenderCustomPaint.performLayout (package:flutter/src/rendering/custom_paint.dart:554:11)
#327 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#328 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#329 RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:122:14)
#330 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#331 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#332 RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:122:14)
#333 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#334 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#335 RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:122:14)
#336 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#337 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#338 RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:122:14)
#339 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#340 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#341 RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:122:14)
#342 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#343 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#344 RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:122:14)
#345 RenderObject.layout (package:flutter/src/rendering/object.dart:2395:7)
#346 RenderBox.layout (package:flutter/src/rendering/box.dart:2386:11)
#347 RenderView.performLayout (package:flutter/src/rendering/view.dart:173:14)
#348 RenderObject._layoutWithoutResize (package:flutter/src/rendering/object.dart:2234:7)
#349 PipelineOwner.flushLayout (package:flutter/src/rendering/object.dart:1016:18)
#350 RendererBinding.drawFrame (package:flutter/src/rendering/binding.dart:492:19)
#351 WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:918:13)
#352 RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:358:5)
#353 SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1290:15)
#354 SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1220:9)
#355 SchedulerBinding.scheduleWarmUpFrame. (package:flutter/src/scheduler/binding.dart:945:7)
#359 _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:189:12)
(elided 5 frames from class _AssertionError, class _Timer, and dart:async-patch)
The following RenderObject was being processed when the exception was fired: RenderLayoutGrid#18125 relayoutBoundary=up20 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
... parentData: offset=Offset(0.0, 0.0) (can use size)
... constraints: BoxConstraints(w=410.7, 0.0<=h<=Infinity)
... size: MISSING
RenderObject: RenderLayoutGrid#18125 relayoutBoundary=up20 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
parentData: offset=Offset(0.0, 0.0) (can use size)
constraints: BoxConstraints(w=410.7, 0.0<=h<=Infinity)
size: MISSING
... child 1: RenderCSSBox#c3bfd NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
... parentData: columnStart=0; columnSpan=1; rowStart=0; rowSpan=1; offset=Offset(0.0, 0.0)
... constraints: MISSING
... size: MISSING
... child 1: RenderDecoratedBox#e6fd3 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
... parentData: offset=Offset(0.0, 0.0)
... constraints: MISSING
... size: MISSING
... decoration: BoxDecoration
... configuration: ImageConfiguration(bundle: PlatformAssetBundle#f776c(), devicePixelRatio: 2.8, locale: en_US, textDirection: TextDirection.ltr, platform: android)
... child: RenderPadding#58369 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
... parentData:
... constraints: MISSING
... size: MISSING
... padding: EdgeInsets.zero
... textDirection: ltr
... child: RenderConstrainedBox#4e5b8 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
... parentData: offset=Offset(0.0, 0.0)
... constraints: MISSING
... size: MISSING
... additionalConstraints: BoxConstraints(biggest)
====================================================================================================`

@wapchief
Copy link

wapchief commented Sep 5, 2023

Temporary solution


extensions: [
        TagExtension(
          tagsToExtend: {"p"},
          builder: (extensionContext) {
            return Text(
              extensionContext.element!.text,
              style: TextStyle(
                fontSize: 12,
              ),
            );
          },
        ),
        const TableHtmlExtension(),
      ],

@emaborsa
Copy link

emaborsa commented Oct 4, 2023

Same problem here.

@emaborsa
Copy link

@Angkhan1992
Yes It could work, but you should use a regex in order to replace <p withSomeAttribute> as well.

@emaborsa
Copy link

Well, I will give it a try, but it is not a nice solution...

@yigtkaya
Copy link

is ther any update on this issue. I pretty much stuck at this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Todo
Development

No branches or pull requests

6 participants
@emaborsa @OhTerryTorres @wapchief @yigtkaya @Equirinya and others