Showing
4 changed files
with
11 additions
and
8 deletions
@@ -333,9 +333,8 @@ class Align extends SingleChildWidget { | @@ -333,9 +333,8 @@ class Align extends SingleChildWidget { | ||
333 | return; | 333 | return; |
334 | } | 334 | } |
335 | 335 | ||
336 | - if (child.box.bottom > box.bottom) { | ||
337 | - final double headSize = | ||
338 | - math.min((child.box.bottom - box.bottom) * 0.2, 10); | 336 | + if (child.box.bottom > 0) { |
337 | + final double headSize = math.min((child.box.bottom) * 0.2, 10); | ||
339 | context.canvas | 338 | context.canvas |
340 | ..moveTo( | 339 | ..moveTo( |
341 | box.left + child.box.horizondalCenter, | 340 | box.left + child.box.horizondalCenter, |
@@ -366,8 +365,8 @@ class Align extends SingleChildWidget { | @@ -366,8 +365,8 @@ class Align extends SingleChildWidget { | ||
366 | box.bottom + child.box.top + headSize); | 365 | box.bottom + child.box.top + headSize); |
367 | } | 366 | } |
368 | 367 | ||
369 | - if (child.box.left > box.left) { | ||
370 | - final double headSize = math.min((child.box.left - box.left) * 0.2, 10); | 368 | + if (child.box.left > 0) { |
369 | + final double headSize = math.min((child.box.left) * 0.2, 10); | ||
371 | context.canvas | 370 | context.canvas |
372 | ..moveTo(box.left, box.bottom + child.box.verticalCenter) | 371 | ..moveTo(box.left, box.bottom + child.box.verticalCenter) |
373 | ..lineTo( | 372 | ..lineTo( |
@@ -4,7 +4,7 @@ description: A pdf producer for Dart. It can create pdf files for both web or fl | @@ -4,7 +4,7 @@ description: A pdf producer for Dart. It can create pdf files for both web or fl | ||
4 | homepage: https://github.com/DavBfr/dart_pdf/tree/master/pdf | 4 | homepage: https://github.com/DavBfr/dart_pdf/tree/master/pdf |
5 | repository: https://github.com/DavBfr/dart_pdf | 5 | repository: https://github.com/DavBfr/dart_pdf |
6 | issue_tracker: https://github.com/DavBfr/dart_pdf/issues | 6 | issue_tracker: https://github.com/DavBfr/dart_pdf/issues |
7 | -version: 1.4.1 | 7 | +version: 1.5.0 |
8 | 8 | ||
9 | environment: | 9 | environment: |
10 | sdk: ">=2.3.0 <3.0.0" | 10 | sdk: ">=2.3.0 <3.0.0" |
No preview for this file type
-
Please register or login to post a comment