David PHAM-VAN

Fix issue in text debug paint

@@ -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