title: How can I set widths with weights in Flutter?
body: <p>I want to show a card that has a picture and title like this:</p>
  
  <p><a href="https://i.stack.imgur.com/IaXd8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IaXd8.png" alt="enter image description here"></a></p>
  
  <p><strong>but the result is wrong</strong>:</p>
  
  <p><a href="https://i.stack.imgur.com/0M2cn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0M2cn.png" alt="enter image description here"></a></p>
  
  <p>I don't know how can I set widgets widths with weights in android, I want to set <strong><code>weight=1</code></strong> for the image and <strong><code>match_parent</code></strong> for other section.<br>
  this my code, where is my mistake? please correct the code.</p>
  
  <pre><code>import 'package:flutter/material.dart';
  
  class SampleAppPage extends StatefulWidget {
    SampleAppPage({Key key}) : super(key: key);
  
    @override
    _SampleAppPageState createState() =&gt; new _SampleAppPageState();
  }
  
  class _SampleAppPageState extends State&lt;SampleAppPage&gt; {
    List widgets = [];
  
    @override
    void initState() {
      super.initState();
      for (int i = 0; i &lt; 100; i++) {
        widgets.add(getRow(i));
      }
    }
  
    @override
    Widget build(BuildContext context) {
      return new Scaffold(
        appBar: new AppBar(
          title: new Text("Sample App"),
        ),
        body: new ListView(children: widgets),
      );
    }
  
    Widget getRow(int i) {
      return new GestureDetector(
        child: new Card(
          child: new Padding(
            padding: new EdgeInsets.all(10.0),
            child: new Row(
              mainAxisAlignment: MainAxisAlignment.end,
              crossAxisAlignment: CrossAxisAlignment.start,
              children: &lt;Widget&gt;[
                new Padding(
                  padding: new EdgeInsets.all(10.0),
                  child: new Column(
                    mainAxisAlignment: MainAxisAlignment.start,
                    children: &lt;Widget&gt;[
                      new Text("عنوان کتاب$i",
                        style: new TextStyle(fontFamily: 'IranSans',
                            fontSize: 16.0,
                            color: new Color.fromARGB(1, 0, 0, 1)),),
                      new Text("این نسخه صرفا برای تست برنامه است. $i",
                        style: new TextStyle(fontFamily: 'IranSans',
                            fontSize: 14.0,
                            color: new Color.fromARGB(0, 1, 0, 1)),),
                    ],
                  ),
                ),
                new Image.asset("images/default_cover.jpg",),
              ],
            ),
          ),
        ),
        onTap: () {
          setState(() {
            widgets = new List.from(widgets);
            widgets.add(getRow(widgets.length + 1));
            print('row $i');
          });
        },
      );
    }
  }
  </code></pre>