title: Flutter how to handle image with fixed size inside box?
body: <p>I am new to Flutter and I like it but I am not comfortable building layouts.</p>
  
  <p>I am working on an app that contains a ListView of Cards.
  Each card is inside a Container and contains an image (with fixed height and width) and a text.</p>
  
  <p>I am not able to place the image correctly inside the Card. I want the image to cover the width of box.
  Thanks.</p>
  
  <p><a href="https://i.stack.imgur.com/EAux1.png" rel="noreferrer"><img src="https://i.stack.imgur.com/EAux1.png" alt="enter image description here"></a></p>
  
  <p>This is the code:</p>
  
  <pre><code>import 'package:flutter/material.dart';
  
  void main() =&gt; runApp(MyApp());
  
  class MyApp extends StatelessWidget {
    @override
    Widget build(BuildContext context) {
      final title = 'MyApp';
  
      return MaterialApp(
        title: title,
        home: Scaffold(
          appBar: AppBar(
            title: Text(title),
          ),
          body: ListView(
            children: &lt;Widget&gt;[
                Container(
                      margin:EdgeInsets.all(8.0),
                      child: Card(
                          shape: RoundedRectangleBorder(borderRadius: BorderRadius.all(Radius.circular(8.0))),
                          child: InkWell(
                             onTap: () =&gt; print("ciao"),     
                             child: Column(
                                  children: &lt;Widget&gt;[
                                      ClipRRect(
                                        borderRadius: BorderRadius.only(
                                          topLeft: Radius.circular(8.0),
                                          topRight: Radius.circular(8.0),
                                        ),
                                        child: Image.asset(
                                          'img/britannia.jpg',
                                          width: 300,
                                          height: 150,
                                          fit:BoxFit.fill  
  
                                        ),
                                      ),
                                      ListTile(
                                        title: Text('Pub 1'),
                                        subtitle: Text('Location 1'),
                                      ),
                                  ],
                             ),
                          ),
                      ),
                ),
            ],
          ),
        ),
      );
    }
  } 
  </code></pre>