title: How to give a CircleAvatar an image from assets
body: <p>I'm doing some testing with the CircleAvatar. I know that the background image would normally be obtained from the network, which is what the <a href="https://docs.flutter.io/flutter/material/CircleAvatar-class.html" rel="noreferrer">documentation</a> shows:</p>
  <pre><code>CircleAvatar(
    backgroundImage: NetworkImage(userAvatarUrl),
  )
  </code></pre>
  <p>However, for testing purposes I just want to use asset images. I can't do this</p>
  <pre><code>leading: CircleAvatar(
    backgroundImage: Image.asset('assets/horse.png'),
  )
  </code></pre>
  <p>because as the error says</p>
  <blockquote>
  <p>The argument type <code>Image</code> can't be assigned to the parameter type <code>ImageProvider</code>.</p>
  </blockquote>
  <p>How do I give an assets image to <code>ImageProvider</code>?</p>