Fix time picker

We were painting the contents of the RRect clip at the wrong offset. This patch
makes RRect match Rect and Path clips.

Fixes #1194
This commit is contained in:
Adam Barth
2016-01-12 10:06:14 -08:00
parent 108eb749dc
commit 84957e5be8

View File

@@ -232,7 +232,7 @@ class PaintingContext {
} else {
canvas.saveLayer(bounds.shift(offset), _disableAntialias);
canvas.clipRRect(clipRRect.shift(offset));
painter(this, Offset.zero);
painter(this, offset);
canvas.restore();
}
}