title: How to draw a filled polygon
body: <p>How to draw a filled polygon in flutter?</p>
  
  <p>Currently I am able to a eyebrow shape with array of point like below.</p>
  
  <pre><code>Path leftEyePath = Path();
  leftEyePath.moveTo(leftEye[0].getX(),leftEye[0].getY());//starting point
  for(int i=1;i&lt;leftEye.length;i++){
    leftEyePath.lineTo(leftEye[i].getX(),leftEye[i].getY());
  }
  canvas.drawPath(leftEyePath,painter);
  </code></pre>
  
  <p>The code above will eventually draw a connected polygon with many line , but how do I draw a filled polygon with color I want?</p>
  
  <p>EDIT:
  I am currently go through their function and found drawShadow(..)</p>
  
  <pre><code>canvas.drawShadow(leftEyePath, Colors.orange[600],0,true);
  </code></pre>
  
  <p>Unfortunately it only draw <strong>transparent color</strong>.</p>
  
  <p>Below is my current output.</p>
  
  <p><a href="https://i.stack.imgur.com/OBtFW.png" rel="noreferrer"><img src="https://i.stack.imgur.com/OBtFW.png" alt="enter image description here"></a></p>