Fix hairline border seen if border width is 0.0

This commit is contained in:
Andrew Wilson 2015-09-03 11:14:25 -07:00
parent 1245aa7929
commit 2b25c33b4a

View File

@ -763,6 +763,9 @@ class BoxPainter {
assert(_decoration.shape == Shape.circle); assert(_decoration.shape == Shape.circle);
assert(_decoration.borderRadius == null); assert(_decoration.borderRadius == null);
double width = _decoration.border.top.width; double width = _decoration.border.top.width;
if (width <= 0.0) {
return;
}
Paint paint = new Paint() Paint paint = new Paint()
..color = _decoration.border.top.color ..color = _decoration.border.top.color
..strokeWidth = width ..strokeWidth = width