Commit 833b1216 authored by Ian Hickson's avatar Ian Hickson Committed by GitHub

Fix Switch (#4622)

I broke them when refactoring images. Oops.
parent 94c4222f
......@@ -353,7 +353,7 @@ class _RenderSwitch extends RenderToggleable {
final double radius = _kThumbRadius - inset;
thumbPainter.paint(
canvas,
thumbPosition.toOffset() + offset,
thumbPosition.toOffset() + offset - new Offset(radius, radius),
configuration.copyWith(size: new Size.fromRadius(radius))
);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment