title: Flutter How to create Card with background Image?
body: <p>I'm trying to create a Card with an Image as a background. The problem is, the Image overflows the Card, so the Corners of the don't show up.</p>
  
  <p>I need to either set the Image as a background of the card or set the cards overflow behavior to no overflow. But I couldn't find any properties for that.</p>
  
  <p>Here is my Card:</p>
  
  <pre><code>Widget _buildProgrammCard() {
    return Container(
      height: 250,
      child: Card(
        child: Image.asset(
          'assets/push.jpg',
          fit: BoxFit.cover,
        ),
        shape: RoundedRectangleBorder(
          borderRadius: BorderRadius.circular(10.0),
        ),
        elevation: 5,
        margin: EdgeInsets.all(10),
      ),
    );
  </code></pre>
  
  <p>And it looks like this:</p>
  
  <p><a href="https://i.stack.imgur.com/P9eod.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/P9eod.jpg" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/NNSpf.png" rel="noreferrer"><img src="https://i.stack.imgur.com/NNSpf.png" alt="enter image description here"></a></p>