title: How to add onClick on image.asset in flutter?
body: <p>I am using three images on clicking which will navigate to other page so how should I use onClick on these images? My code is below:</p>
  
  <pre><code>Row(
        children: [
          Expanded(
            child: Column(
              children: &lt;Widget&gt;[
                Container(
                    child: ClipRRect(
                  borderRadius: BorderRadius.circular(20.0),
                  child: Image.asset('assets/cat.jpg',
                      width: 110.0, height: 110.0),
                )),
                Text(
                  'Tickets',
                  style:
                      TextStyle(fontSize: 16.0, fontWeight: FontWeight.bold),
                )
              ],
            ),
          ),
          Expanded(
            child: Column(
              children: &lt;Widget&gt;[
                Container(
                    child: ClipRRect(
                  borderRadius: BorderRadius.circular(20),
                  child: Image.asset('assets/cat.jpg',
                      width: 110.0, height: 110.0),
                )),
                Text(
                  'Buy Tickets',
                  style:
                      TextStyle(fontSize: 16.0, fontWeight: FontWeight.bold),
                )
              ],
            ),
          ),
          Expanded(
            child: Column(
              children: &lt;Widget&gt;[
                Container(
                    child: ClipRRect(
                      borderRadius: BorderRadius.circular(20),
                      child: Image.asset('assets/cat.jpg',
                          width: 110.0, height: 110.0),
                    )),
                Text(
                  'Prizes',
                  style:
                      TextStyle(fontSize: 16.0, fontWeight: FontWeight.bold),
                )
              ],
            ),
          ),
        ],
      ),
  </code></pre>
  
  <p>Expected : Adding an onClick on images
  I used <code>GestureDetector</code> but it is throwing error so I need to know what I should use and how.</p>