We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a6272e commit ee9d075Copy full SHA for ee9d075
1 file changed
pdf/lib/src/widgets/table.dart
@@ -371,7 +371,7 @@ class Table extends Widget with SpanningWidget {
371
return;
372
}
373
374
- final maxWidth = _widths.reduce((double? a, double? b) => a! + b!);
+ final maxWidth = _widths.fold(0.0, (sum, element) => sum + element);
375
376
// Compute column widths using flex and estimated width
377
if (constraints.hasBoundedWidth) {
@@ -399,7 +399,7 @@ class Table extends Widget with SpanningWidget {
399
400
401
402
- final totalWidth = _widths.reduce((double? a, double? b) => a! + b!);
+ final totalWidth = _widths.fold(0.0, (sum, element) => sum + element);
403
404
// Compute final widths
405
var totalHeight = 0.0;
0 commit comments