title: How to let an image extend while controlling its width and giving it a border-radius in Flutter
body: <p>I am working in Flutter where I have a <code>ListView</code> in which I show a lot of images, I need those images to have the same width but they can extend as per their original height, i.e. I want a constraint on the width of the image but not the height. It should look like the image below:</p>
  <p><a href="https://i.stack.imgur.com/wfR92.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wfR92.png" alt="enter image description here" /></a></p>
  <p>Whereas the code I have written now forces every image to have the same height. Here is the code:</p>
  <pre><code>                               Container(
                                    width: MediaQuery.of(context).size.width * .9,
                                    height: MediaQuery.of(context).size.height * .6,
                                    decoration: BoxDecoration(
                                        borderRadius: BorderRadius.circular(35),
                                        image: DecorationImage(
                                            image: NetworkImage(memes[index].link),
                                          fit: BoxFit.fill
                                        )
                                    ),
                                  ),
  </code></pre>
  <p>Thanks a lot!</p>