title: Flutter button with custom shape - (triangle)
body: <p>I've created a circular button which in this case is <code>RawMaterialButton</code> and I'm trying to use <code>CustomPaint</code> to create a triangle shape in the centre of it, but it's saying <code>ShapesPainter</code> is not defined for the class <code>ClearButton'. I tried other buttons but couldn't get any of them to accept</code>ShapesPainter`.</p>
  
  <pre><code>RawMaterialButton(
            child: CustomPaint(
              painter: ShapesPainter(),
              child: Container(
                height: 40,
              ),
            ),
            onPressed: onPressed,
            constraints: BoxConstraints.tightFor(
              width: 90.0,
              height: 90.0,
            ),
            shape: RoundedRectangleBorder(),
            fillColor: Colors.transparent,
          )
  </code></pre>
  
  <p>Which button type should be used with <code>ShapesPainter</code> or how can I otherwise create a circular button with a triangle or another shape in the centre?</p>
  
  <p>This is the button I was trying to create which as you can see is basically a circular button with a triangle.</p>
  
  <p><a href="https://i.stack.imgur.com/cjeRN.png" rel="noreferrer"><img src="https://i.stack.imgur.com/cjeRN.png" alt="enter image description here"></a></p>