David PHAM-VAN

Fix context painting empty Table

... ... @@ -9,6 +9,7 @@
- Optimize file size
- Add PdfColor.shade
- Uniformize examples
- Fix context painting empty Table
## 1.5.0
... ...
... ... @@ -409,16 +409,16 @@ class Table extends Widget implements SpanningWidget {
void paint(Context context) {
super.paint(context);
if (_context.lastLine == 0) {
return;
}
final Matrix4 mat = Matrix4.identity();
mat.translate(box.x, box.y);
context.canvas
..saveContext()
..setTransform(mat);
if (_context.lastLine == 0) {
return;
}
int index = 0;
for (TableRow row in children) {
if (index++ < _context.firstLine && !row.repeat) {
... ...