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
2021-02-27 16:05:28 -0400
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2d52b1fe9a7e0f09c469a9e594af3ef0e8cbc903
2d52b1fe
1 parent
ed95744f
Fix border painting with TableRow
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
4 deletions
pdf/CHANGELOG.md
pdf/lib/src/widgets/table.dart
pdf/CHANGELOG.md
View file @
2d52b1f
...
...
@@ -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
...
...
pdf/lib/src/widgets/table.dart
View file @
2d52b1f
...
...
@@ -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
,
);
}
...
...
Please
register
or
login
to post a comment