@override void transformCanvas(Canvas canvas) { canvas.translate(size.x / 2, size.y / 2); super.transformCanvas(canvas); canvas.translate(-(size.x / 2) / scale.x, -(size.y / 2) / scale.y); }