title: How to show image from network in flutter BoxDecoration?
body: <p>I want to show an image of the network in BoxDecoration. But its showing error </p>
  
  <blockquote>
    <p>"The argument type 'image' can't be assigned to the parameter type 'imageProvider'".</p>
  </blockquote>
  
  <p>Here is the code where I am trying to show an image from the network inside box decoration. Please check and do let me know where I am wrong in this code.  </p>
  
  <pre class="lang-dart prettyprint-override"><code>decoration: new BoxDecoration(
      image: new DecorationImage(image: new Image.network("http://myurl.com/"+productList[index].thumbnail),
      fit: BoxFit.cover)
  ),
  </code></pre>