David PHAM-VAN

Specify line width for existing widgets

... ... @@ -323,6 +323,7 @@ class Align extends SingleChildWidget {
void debugPaint(Context context) {
context.canvas
..setStrokeColor(PdfColors.green)
..setLineWidth(1)
..drawRect(box.x, box.y, box.width, box.height);
if (child == null) {
... ...
... ... @@ -23,6 +23,7 @@ class ClipRect extends SingleChildWidget {
void debugPaint(Context context) {
context.canvas
..setStrokeColor(PdfColors.deepPurple)
..setLineWidth(1)
..drawRect(box.x, box.y, box.width, box.height)
..strokePath();
}
... ... @@ -61,6 +62,7 @@ class ClipRRect extends SingleChildWidget {
void debugPaint(Context context) {
context.canvas
..setStrokeColor(PdfColors.deepPurple)
..setLineWidth(1)
..drawRRect(
box.x, box.y, box.width, box.height, horizontalRadius, verticalRadius)
..strokePath();
... ... @@ -95,6 +97,7 @@ class ClipOval extends SingleChildWidget {
context.canvas
..setStrokeColor(PdfColors.deepPurple)
..setLineWidth(1)
..drawEllipse(box.x + rx, box.y + ry, rx, ry)
..strokePath();
}
... ...
... ... @@ -106,6 +106,7 @@ abstract class Widget {
void debugPaint(Context context) {
context.canvas
..setStrokeColor(PdfColors.purple)
..setLineWidth(1)
..drawRect(box.x, box.y, box.width, box.height)
..strokePath();
}
... ...