Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
dart_pdf
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
David PHAM-VAN
2020-03-17 18:17:23 -0400
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7c307d39f90df5f007f8dcb81f452cc4fc8ad926
7c307d39
1 parent
41538807
Fix context painting empty Table
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
pdf/CHANGELOG.md
pdf/lib/widgets/table.dart
pdf/CHANGELOG.md
View file @
7c307d3
...
...
@@ -9,6 +9,7 @@
-
Optimize file size
-
Add PdfColor.shade
-
Uniformize examples
-
Fix context painting empty Table
## 1.5.0
...
...
pdf/lib/widgets/table.dart
View file @
7c307d3
...
...
@@ -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
)
{
...
...
Please
register
or
login
to post a comment