Showing
3 changed files
with
15 additions
and
11 deletions
@@ -5,6 +5,7 @@ | @@ -5,6 +5,7 @@ | ||
5 | - Fix missing endobj with compressed xref | 5 | - Fix missing endobj with compressed xref |
6 | - Fix missing smask subtype | 6 | - Fix missing smask subtype |
7 | - Add missing final "~>" to Ascii85 encoder | 7 | - Add missing final "~>" to Ascii85 encoder |
8 | +- Fix typo "horizontalCenter" | ||
8 | 9 | ||
9 | ## 3.7.2 | 10 | ## 3.7.2 |
10 | 11 |
@@ -40,7 +40,10 @@ class PdfRect { | @@ -40,7 +40,10 @@ class PdfRect { | ||
40 | double get right => x + width; | 40 | double get right => x + width; |
41 | double get top => y + height; | 41 | double get top => y + height; |
42 | 42 | ||
43 | - double get horizondalCenter => x + width / 2; | 43 | + @Deprecated('type => horizontalCenter') |
44 | + double get horizondalCenter => horizontalCenter; | ||
45 | + | ||
46 | + double get horizontalCenter => x + width / 2; | ||
44 | double get verticalCenter => y + height / 2; | 47 | double get verticalCenter => y + height / 2; |
45 | 48 | ||
46 | @override | 49 | @override |
@@ -341,16 +341,16 @@ class Align extends SingleChildWidget { | @@ -341,16 +341,16 @@ class Align extends SingleChildWidget { | ||
341 | final headSize = math.min(child!.box!.bottom * 0.2, 10); | 341 | final headSize = math.min(child!.box!.bottom * 0.2, 10); |
342 | context.canvas | 342 | context.canvas |
343 | ..moveTo( | 343 | ..moveTo( |
344 | - box!.left + child!.box!.horizondalCenter, | 344 | + box!.left + child!.box!.horizontalCenter, |
345 | box!.bottom, | 345 | box!.bottom, |
346 | ) | 346 | ) |
347 | - ..lineTo(box!.left + child!.box!.horizondalCenter, | 347 | + ..lineTo(box!.left + child!.box!.horizontalCenter, |
348 | box!.bottom + child!.box!.bottom) | 348 | box!.bottom + child!.box!.bottom) |
349 | - ..lineTo(box!.left + child!.box!.horizondalCenter - headSize, | 349 | + ..lineTo(box!.left + child!.box!.horizontalCenter - headSize, |
350 | box!.bottom + child!.box!.bottom - headSize) | 350 | box!.bottom + child!.box!.bottom - headSize) |
351 | - ..moveTo(box!.left + child!.box!.horizondalCenter, | 351 | + ..moveTo(box!.left + child!.box!.horizontalCenter, |
352 | box!.bottom + child!.box!.bottom) | 352 | box!.bottom + child!.box!.bottom) |
353 | - ..lineTo(box!.left + child!.box!.horizondalCenter + headSize, | 353 | + ..lineTo(box!.left + child!.box!.horizontalCenter + headSize, |
354 | box!.bottom + child!.box!.bottom - headSize); | 354 | box!.bottom + child!.box!.bottom - headSize); |
355 | } | 355 | } |
356 | 356 | ||
@@ -358,14 +358,14 @@ class Align extends SingleChildWidget { | @@ -358,14 +358,14 @@ class Align extends SingleChildWidget { | ||
358 | final headSize = | 358 | final headSize = |
359 | math.min((box!.top - child!.box!.top - box!.bottom) * 0.2, 10); | 359 | math.min((box!.top - child!.box!.top - box!.bottom) * 0.2, 10); |
360 | context.canvas | 360 | context.canvas |
361 | - ..moveTo(box!.left + child!.box!.horizondalCenter, box!.top) | ||
362 | - ..lineTo(box!.left + child!.box!.horizondalCenter, | 361 | + ..moveTo(box!.left + child!.box!.horizontalCenter, box!.top) |
362 | + ..lineTo(box!.left + child!.box!.horizontalCenter, | ||
363 | box!.bottom + child!.box!.top) | 363 | box!.bottom + child!.box!.top) |
364 | - ..lineTo(box!.left + child!.box!.horizondalCenter - headSize, | 364 | + ..lineTo(box!.left + child!.box!.horizontalCenter - headSize, |
365 | box!.bottom + child!.box!.top + headSize) | 365 | box!.bottom + child!.box!.top + headSize) |
366 | - ..moveTo(box!.left + child!.box!.horizondalCenter, | 366 | + ..moveTo(box!.left + child!.box!.horizontalCenter, |
367 | box!.bottom + child!.box!.top) | 367 | box!.bottom + child!.box!.top) |
368 | - ..lineTo(box!.left + child!.box!.horizondalCenter + headSize, | 368 | + ..lineTo(box!.left + child!.box!.horizontalCenter + headSize, |
369 | box!.bottom + child!.box!.top + headSize); | 369 | box!.bottom + child!.box!.top + headSize); |
370 | } | 370 | } |
371 | 371 |
-
Please register or login to post a comment