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-01-25 14:00:32 -0500
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3d50530933e4e172dda0c304bdd46e8dd7ab69a8
3d505309
1 parent
fb066747
Fix Align debug painting
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
8 deletions
pdf/CHANGELOG.md
pdf/lib/widgets/basic.dart
pdf/pubspec.yaml
test/golden/widgets-basic.pdf
pdf/CHANGELOG.md
View file @
3d50530
# Changelog
## 1.5.0
-
Fix Align debug painting
## 1.4.1
-
Update dependency to barcode ^1.5.0
...
...
pdf/lib/widgets/basic.dart
View file @
3d50530
...
...
@@ -333,9 +333,8 @@ class Align extends SingleChildWidget {
return
;
}
if
(
child
.
box
.
bottom
>
box
.
bottom
)
{
final
double
headSize
=
math
.
min
((
child
.
box
.
bottom
-
box
.
bottom
)
*
0.2
,
10
);
if
(
child
.
box
.
bottom
>
0
)
{
final
double
headSize
=
math
.
min
((
child
.
box
.
bottom
)
*
0.2
,
10
);
context
.
canvas
..
moveTo
(
box
.
left
+
child
.
box
.
horizondalCenter
,
...
...
@@ -366,8 +365,8 @@ class Align extends SingleChildWidget {
box
.
bottom
+
child
.
box
.
top
+
headSize
);
}
if
(
child
.
box
.
left
>
box
.
left
)
{
final
double
headSize
=
math
.
min
((
child
.
box
.
left
-
box
.
left
)
*
0.2
,
10
);
if
(
child
.
box
.
left
>
0
)
{
final
double
headSize
=
math
.
min
((
child
.
box
.
left
)
*
0.2
,
10
);
context
.
canvas
..
moveTo
(
box
.
left
,
box
.
bottom
+
child
.
box
.
verticalCenter
)
..
lineTo
(
...
...
pdf/pubspec.yaml
View file @
3d50530
...
...
@@ -4,7 +4,7 @@ description: A pdf producer for Dart. It can create pdf files for both web or fl
homepage
:
https://github.com/DavBfr/dart_pdf/tree/master/pdf
repository
:
https://github.com/DavBfr/dart_pdf
issue_tracker
:
https://github.com/DavBfr/dart_pdf/issues
version
:
1.
4.1
version
:
1.
5.0
environment
:
sdk
:
"
>=2.3.0
<3.0.0"
...
...
test/golden/widgets-basic.pdf
View file @
3d50530
No preview for this file type
Please
register
or
login
to post a comment