title: Flutter draw widget to canvas at certain path position
body: <p>I have this custom path in my page</p>
  <pre><code>class TestPathPainter extends CustomPainter {
    @override
    void paint(Canvas canvas, Size size) {
      final paint = Paint()
        ..style = PaintingStyle.stroke
        ..strokeWidth = 2.0
        ..color = Colors.black;
  
      var x = size.width;
      var y = size.height;
      print(x);
  
      var path = Path()
        ..moveTo(x, y / 4)
        ..lineTo(x * 0.95, y / 4)
        ..lineTo(x * 0.95, y / 3)
        ..lineTo(x * 0.99, y / 3)
        ..lineTo(x * 0.99, y / 3.7)
        ..lineTo(x * 0.955, y / 3.7)
        ..lineTo(x * 0.955, y / 3.15)
        ..lineTo(x * 0.98, y / 3.15)
        ..lineTo(x * 0.98, y / 3.5)
        ..lineTo(x * 0.94, y / 3.5) //  &lt;==== I want to display a Checkbox here
        ..lineTo(x * 0.94, y / 2)
        ..lineTo(x * 0.91, y / 2)
        ..lineTo(x * 0.91, y / 1.65)
        ..lineTo(x * 0.94, y / 1.65)
        ..lineTo(x * 0.94, y / 1.4)
        ..lineTo(x * 0.91, y / 1.4);
  
      canvas.drawPath(path, paint);
    }
  
    @override
    bool shouldRepaint(TestPathPainter oldDelegate) =&gt; false;
  }
  </code></pre>
  <p>How can i draw/render a widget ( a checkbox for example ) somewhere on this path?</p>
  <p>I tried using a stacked widget and positioning the checkboxes but this wont look the same on every device.</p>