David PHAM-VAN

Fix Align debug painting

# Changelog
## 1.5.0
- Fix Align debug painting
## 1.4.1
- Update dependency to barcode ^1.5.0
... ...
... ... @@ -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(
... ...
... ... @@ -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"
... ...