David PHAM-VAN

Fix typo "horizontalCenter"

... ... @@ -5,6 +5,7 @@
- Fix missing endobj with compressed xref
- Fix missing smask subtype
- Add missing final "~>" to Ascii85 encoder
- Fix typo "horizontalCenter"
## 3.7.2
... ...
... ... @@ -40,7 +40,10 @@ class PdfRect {
double get right => x + width;
double get top => y + height;
double get horizondalCenter => x + width / 2;
@Deprecated('type => horizontalCenter')
double get horizondalCenter => horizontalCenter;
double get horizontalCenter => x + width / 2;
double get verticalCenter => y + height / 2;
@override
... ...
... ... @@ -341,16 +341,16 @@ class Align extends SingleChildWidget {
final headSize = math.min(child!.box!.bottom * 0.2, 10);
context.canvas
..moveTo(
box!.left + child!.box!.horizondalCenter,
box!.left + child!.box!.horizontalCenter,
box!.bottom,
)
..lineTo(box!.left + child!.box!.horizondalCenter,
..lineTo(box!.left + child!.box!.horizontalCenter,
box!.bottom + child!.box!.bottom)
..lineTo(box!.left + child!.box!.horizondalCenter - headSize,
..lineTo(box!.left + child!.box!.horizontalCenter - headSize,
box!.bottom + child!.box!.bottom - headSize)
..moveTo(box!.left + child!.box!.horizondalCenter,
..moveTo(box!.left + child!.box!.horizontalCenter,
box!.bottom + child!.box!.bottom)
..lineTo(box!.left + child!.box!.horizondalCenter + headSize,
..lineTo(box!.left + child!.box!.horizontalCenter + headSize,
box!.bottom + child!.box!.bottom - headSize);
}
... ... @@ -358,14 +358,14 @@ class Align extends SingleChildWidget {
final headSize =
math.min((box!.top - child!.box!.top - box!.bottom) * 0.2, 10);
context.canvas
..moveTo(box!.left + child!.box!.horizondalCenter, box!.top)
..lineTo(box!.left + child!.box!.horizondalCenter,
..moveTo(box!.left + child!.box!.horizontalCenter, box!.top)
..lineTo(box!.left + child!.box!.horizontalCenter,
box!.bottom + child!.box!.top)
..lineTo(box!.left + child!.box!.horizondalCenter - headSize,
..lineTo(box!.left + child!.box!.horizontalCenter - headSize,
box!.bottom + child!.box!.top + headSize)
..moveTo(box!.left + child!.box!.horizondalCenter,
..moveTo(box!.left + child!.box!.horizontalCenter,
box!.bottom + child!.box!.top)
..lineTo(box!.left + child!.box!.horizondalCenter + headSize,
..lineTo(box!.left + child!.box!.horizontalCenter + headSize,
box!.bottom + child!.box!.top + headSize);
}
... ...