Fix hairline border seen if border width is 0.0
This commit is contained in:
parent
1245aa7929
commit
2b25c33b4a
@ -763,6 +763,9 @@ class BoxPainter {
|
||||
assert(_decoration.shape == Shape.circle);
|
||||
assert(_decoration.borderRadius == null);
|
||||
double width = _decoration.border.top.width;
|
||||
if (width <= 0.0) {
|
||||
return;
|
||||
}
|
||||
Paint paint = new Paint()
|
||||
..color = _decoration.border.top.color
|
||||
..strokeWidth = width
|
||||
|
Loading…
x
Reference in New Issue
Block a user