File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
packages/core/lib/src/widgets Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -415,7 +415,7 @@ class _TableRenderLayouter {
415415 final layoutSize = layouter (child, step1.widthConstraints);
416416 childSizes[i] = layoutSize;
417417 maxColumnWidths.setMaxColumnWidths (tro, data, layoutSize.width);
418- logger.fine ('Got child#$i $layoutSize @${step1 .widthConstraints }' );
418+ logger.fine ('[3] Got child#$i $layoutSize @${step1 .widthConstraints }' );
419419 shouldLoop = true ;
420420 }
421421
@@ -525,7 +525,7 @@ class _TableRenderLayouter {
525525 // layout with tight constraints to get the expected width
526526 final cc1 = BoxConstraints .tightFor (width: childWidth);
527527 childSize = layouter (child, cc1);
528- logger.fine ('Got child#$i $childSize @$cc1 ' );
528+ logger.fine ('[4] Got child#$i $childSize @$cc1 ' );
529529 childSizes[i] = childSize;
530530 }
531531
@@ -687,6 +687,10 @@ class _TableDataStep1 {
687687
688688 static double _calculateRemainingWidth (
689689 _TableRenderObject tro, int columnCount, double width) {
690+ if (width.isZero) {
691+ return 0 ;
692+ }
693+
690694 final columnGapsSum = (columnCount + 1 ) * tro.columnGap;
691695 final gapsAndPaddings = tro.paddingLeft + columnGapsSum + tro.paddingRight;
692696 return width - gapsAndPaddings;
You can’t perform that action at this time.
0 commit comments