title: Flutter: Resize/scale up an image clipped with ClipRect
body: <p>I have an image that I want to load, but only show a certain cropped portion. I used examples from here: <a href="https://educity.app/flutter/how-to-clip-images-in-flutter" rel="nofollow noreferrer">https://educity.app/flutter/how-to-clip-images-in-flutter</a></p>
  <p>My (testing) widget tree looks like this:</p>
  <pre><code>return Scaffold(
    body: SafeArea(
      child: SingleChildScrollView(
        child: Stack(
          children: &lt;Widget&gt;[
            Text(&quot;Hello World&quot;),
            Container(
              alignment: Alignment.topLeft,
              width: MediaQuery.of(context).size.width,
              child: ClipRect(
                child: Container(
                  child: Align(
                    alignment: Alignment(-0.5, -0.2),
                    widthFactor: 0.6,
                    heightFactor: 0.5,
  
                    child: Image.network(
                        'https://images.unsplash.com/photo-1473992243898-fa7525e652a5'
                    ),
                  ),
                ),
              )
            ),
  </code></pre>
  <p>Emulator (Pixel 3C) output looks like this:</p>
  <p><a href="https://i.stack.imgur.com/kr90n.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kr90n.png" alt="enter image description here" /></a></p>
  <p>However, I would like to scale up the cropped image to span the whole width of the window, I'm not sure how to do that. I've already tried wrapping it in a Container with width set to the max width, but that doesn't scale up the image. Any advice? Or maybe there's a better way to do this?</p>
  <p>(I'm also not sure why the image still overlaps with the notch thing on top of the emulator? I assumed the SafeArea would handle that, but that's fine. One problem at a time.)</p>
  <p>Thanks!</p>
  <p>Edit: Adding an example to more clearly illustrate what I want (circled in red):</p>
  <p><a href="https://i.stack.imgur.com/VxLvP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VxLvP.png" alt="enter image description here" /></a></p>
  <p>(Forgive my poor MS paint skills)</p>