title: GestureDetector in ListView not working properly
body: <p>I am trying to show user avatars in list view and navigate to chat page on click event.</p>
  <pre><code>
  Container(
                height: 100.0,
                child: matches!.length &gt; 0
                    ? ListView.builder(
                        padding: const EdgeInsets.only(left: 10.0),
                        scrollDirection: Axis.horizontal,
                        itemCount: matches!.length,
                        itemBuilder: (BuildContext context, int index) {
                          return GestureDetector(
                            onTap: () {
                              print(&quot;go to chat page&quot;);
                              
                            },
                            child: CircleAvatar(
                              backgroundColor: secondryColor,
                              radius: 35.0,
                              child: ClipRRect(
                                borderRadius: BorderRadius.circular(90),
                                child: CachedNetworkImage(
                                  imageUrl: matches?[index].imageUrl[0] ?? '',
                                  useOldImageOnUrlChange: true,
                                  placeholder: (context, url) =&gt;
                                      const CupertinoActivityIndicator(
                                    radius: 15,
                                  ),
                                  errorWidget: (context, url, error) =&gt;
                                      const Icon(Icons.error),
                                ),
                              ),
                            ),
                          );
                        },
                      )
                    : const Center(
                        child: Text(
                          &quot;No match found&quot;,
                          style: TextStyle(color: secondryColor, fontSize: 16),
                        ),
                      ),
  </code></pre>
  <p>I tried to use InkWell that didn't work either. I used TextButton it works but only on the top-outside of the avatar.</p>