title: Proper way to add GestureDector to Listview.builder card in Flutter?
body: <p>I have an Expanded widget wrapped around a <code>Listview.builder</code> of Card. How can I make my card not only detect <code>onTap</code> but also pass variables to my new <code>.dart</code> file on Navigation. I'm currently getting a sizing error? </p>
  
  <p><strong>Updated With Code</strong></p>
  
  <p>Here is my code:</p>
  
  <pre><code>new Expanded(
                  child: new ListView.builder(
                      itemCount: id == null ? 0 : id.length,
                      itemBuilder: (BuildContext context, int index) {
                        return new Card(
                          child: new Column(
                            children: &lt;Widget&gt;[
                              new Image.network(video[index]),
                              new Padding(padding: new EdgeInsets.all(3.0)),
                              new Text(title[index],
                              style: new TextStyle(fontWeight: FontWeight.bold,
                              color: Colors.black),
                              ),
                              new GestureDetector(onTap: (){
                                print(id[index]);
                              },)
  
                            ],
                          ),
                        );
  
                      }))
  </code></pre>
  
  <p>Here is the thrown exception:</p>
  
  <pre><code>The following assertion was thrown during performLayout():
  RenderPointerListener object was given an infinite size during layout.
  This probably means that it is a render object that tries to be as big as possible, but it was put
  inside another render object that allows its children to pick their own size.
  </code></pre>
  
  <p>I would like to pass <code>title[index]</code> and <code>video[index]</code> similar to <code>didSelectRowAtIndexPath</code> in iOS Swift.</p>