Showing
1 changed file
with
6 additions
and
1 deletions
@@ -766,7 +766,12 @@ class RichText extends Widget { | @@ -766,7 +766,12 @@ class RichText extends Widget { | ||
766 | context.canvas | 766 | context.canvas |
767 | ..setStrokeColor(PdfColors.blue) | 767 | ..setStrokeColor(PdfColors.blue) |
768 | ..setLineWidth(1) | 768 | ..setLineWidth(1) |
769 | - ..drawRect(box.x, box.y, box.width, box.height) | 769 | + ..drawRect( |
770 | + box.x, | ||
771 | + box.y, | ||
772 | + box.width == double.infinity ? 1000 : box.width, | ||
773 | + box.height == double.infinity ? 1000 : box.height, | ||
774 | + ) | ||
770 | ..strokePath(); | 775 | ..strokePath(); |
771 | } | 776 | } |
772 | 777 |
-
Please register or login to post a comment