title: How to draw a ring with CustomPainter in flutter?
body: <p>I'm trying to draw a half ring with CustomPainter class, which you can see in the below image (which is in light purple &amp; light orange colours)  but unable to drawn it.
  I can just only draw circle, square and line.</p>
  
  <p>Code:</p>
  
  <pre><code>class MakeCircle extends CustomPainter {
    @override
    void paint(Canvas canvas, Size size) {
      final paint = Paint();
      paint.color = Colors.white12;
      var position = Offset(size.width /10, size.height / 10);
      canvas.drawCircle(position, 40.0, paint);
    }
    @override
    bool shouldRepaint(CustomPainter oldDelegate) =&gt; false;
  }
  </code></pre>
  
  <p>this can only draw circle.</p>
  
  <p><a href="https://i.stack.imgur.com/dOslJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dOslJ.png" alt="enter image description here"></a></p>