Closed
Description
I have bug about table html that not render.
This is log from console:
Log
The following assertion was thrown during performLayout():
GridPlacement.columnEnd cannot exceed column count
grid: RenderLayoutGrid#b0a00 relayoutBoundary=up41 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
parentData: offset=Offset(0.0, 0.0) (can use size)
constraints: BoxConstraints(0.0<=w<=398.0, 0.0<=h<=Infinity)
size: MISSING
...
gridItem: RenderConstrainedBox#9fa06 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
parentData: columnStart=4; columnSpan=1; rowStart=2; rowSpan=1; offset=Offset(0.0, 0.0)
constraints: MISSING
size: MISSING
additionalConstraints: BoxConstraints(w=Infinity, 0.0<=h<=Infinity)
... child: RenderDecoratedBox#5cf80 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
... parentData: <none>
... constraints: MISSING
... size: MISSING
... decoration: BoxDecoration
... color: Color(0x50eeeeee)
... border: Border(bottom: BorderSide(MaterialColor(primary value: Color(0xff9e9e9e)), 1.0, BorderStyle.solid))
... configuration: ImageConfiguration(bundle: PlatformAssetBundle#4313b(), devicePixelRatio: 2.0, locale: en_US, textDirection: TextDirection.ltr, platform: iOS)
... child: RenderPadding#e0f04 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
... parentData: <none>
... constraints: MISSING
... size: MISSING
... padding: EdgeInsets(6.0, 6.0, 6.0, 7.0)
... textDirection: ltr
... child: RenderConstrainedBox#c6e55 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
... parentData: offset=Offset(0.0, 0.0)
... constraints: MISSING
... size: MISSING
... additionalConstraints: BoxConstraints(biggest)
... child: RenderPositionedBox#f5d1b NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
... parentData: <none>
... constraints: MISSING
... size: MISSING
... alignment: Alignment.topLeft
... textDirection: ltr
... widthFactor: expand
... heightFactor: expand
The relevant error-causing widget was:
LayoutGrid file:///Users/anhnt/Downloads/flutter_html-master/lib/src/layout_element.dart:151:12
When the exception was thrown, this was the stack:
#0 PlacementGrid.addItemToArea (package:flutter_layout_grid/src/rendering/placement.dart:157:7)
#1 computeItemPlacement (package:flutter_layout_grid/src/rendering/placement.dart:51:15)
#2 RenderLayoutGrid.performItemPlacement (package:flutter_layout_grid/src/rendering/layout_grid.dart:447:24)
#3 RenderLayoutGrid.computeGridSize (package:flutter_layout_grid/src/rendering/layout_grid.dart:403:5)
#4 RenderLayoutGrid.performLayout (package:flutter_layout_grid/src/rendering/layout_grid.dart:313:46)
...
The following RenderObject was being processed when the exception was fired: RenderLayoutGrid#b0a00 relayoutBoundary=up41 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
... parentData: offset=Offset(0.0, 0.0) (can use size)
... constraints: BoxConstraints(0.0<=w<=398.0, 0.0<=h<=Infinity)
... size: MISSING
RenderObject: RenderLayoutGrid#b0a00 relayoutBoundary=up41 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
parentData: offset=Offset(0.0, 0.0) (can use size)
constraints: BoxConstraints(0.0<=w<=398.0, 0.0<=h<=Infinity)
size: MISSING
...
======== Exception caught by rendering library =====================================================
RenderBox was not laid out: RenderLayoutGrid#b0a00 relayoutBoundary=up41 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
'package:flutter/src/rendering/box.dart':
Failed assertion: line 1940 pos 12: 'hasSize'
The relevant error-causing widget was:
LayoutBuilder file:///Users/anhnt/Downloads/flutter_html-master/lib/src/layout_element.dart:44:14
====================================================================================================
This is html:
HTML
CẤP HỌC | HỌC KỲ II | NGÀY KẾT THÚC NĂM HỌC | |
Ngày bắt đầu HKII | Ngày kết thúc HKII | ||
Mầm non | 18/01/2021 (thứ Hai) | 24/5/2021 (thứ Hai) | 28/5/2021 (thứ Sáu) |
Tiểu học | 18/01/2021 (thứ Hai) | 24/5/2021 (thứ Hai) | 28/5/2021 (thứ Sáu) |
Trung học cơ sở, trung học phổ thông (THCS, THPT) | 18/01/2021 (thứ Hai) | 24/5/2021 (thứ Hai) | 28/5/2021 (thứ Sáu) |
GDTX (THCS và THPT) | 04/01/2021 (thứ Hai) | 10/5/2021 (thứ Hai) | 14/5/2021 |
The issue is related tag <td rowspan="2">
. If i remove rowspan that is ok.
I am using version: 2.0.0-nullsafety.0
Please help me to check it. Thanks