David PHAM-VAN

Fix border painting with TableRow

... ... @@ -5,6 +5,7 @@
- Fix Checkbox Widget
- Fix SVG colors with percent
- Fix TextField Widget
- Fix border painting with TableRow
## 3.0.0-nullsafety.1
... ...
... ... @@ -603,11 +603,16 @@ class Table extends Widget implements SpanningWidget {
continue;
}
final child = row.children.first;
if (row.decoration != null) {
var y = double.infinity;
var h = 0.0;
for (var child in row.children) {
y = math.min(y, child.box!.y);
h = math.max(h, child.box!.height);
}
row.decoration!.paint(
context,
PdfRect(0, child.box!.y, box!.width, child.box!.height),
PdfRect(0, y, box!.width, h),
PaintPhase.background,
);
}
... ... @@ -632,11 +637,16 @@ class Table extends Widget implements SpanningWidget {
continue;
}
final child = row.children.first;
if (row.decoration != null) {
var y = double.infinity;
var h = 0.0;
for (var child in row.children) {
y = math.min(y, child.box!.y);
h = math.max(h, child.box!.height);
}
row.decoration!.paint(
context,
PdfRect(0, child.box!.y, box!.width, child.box!.height),
PdfRect(0, y, box!.width, h),
PaintPhase.foreground,
);
}
... ...