title: Flutter Image.Network and CachedNetworkImage are not displaying?
body: <h1>When I try to show an image to the user it cannot be seen.</h1>
  
  <p><code>Image.network('https://picsum.photos/250?image=9')</code></p>
  
  <p>I've tried adding
  <code>&lt;uses-permission android:name="android.permission.INTERNET" /&gt;</code>
  to the AndroidManifest.xml file.</p>
  
  <p>Still not displaying.</p>
  
  <p>I have not tried this with IOS.</p>
  
  <p>Also I've realised I'm getting an error as follows:
  <code>The following SocketException was thrown resolving an image codec: 'picsum.photos' (OS Error: No address associated with host.</code></p>
  
  <p>Any idea on how I could fix this?</p>
  
  <h3>Edit 1:</h3>
  
  <p>this is the code for that I'm using:</p>
  
  <pre><code>CachedNetworkImage(
   imageUrl: '$server/cdn/post/img?id=${this.id}', httpHeaders: imgHeaders,
   placeholder: (BuildContext context, String url) {
    return Center(child: CircularProgressIndicator());
   },
   errorWidget: (context, url, error) =&gt; Icon(Icons.error),
  ),
  </code></pre>
  
  <p>The server is my localhost url and it works fine as I am using it to fetch some data from my nodejs server and it works.</p>
  
  <p>this.id is my widget's argument which is equal to an id that server will use to serve the correct image. It is defined and has a value.</p>
  
  <p>Also this is a child of a Stack widget if that helps. Plus I've had this with other urls as well.</p>