title: Flutter - How tap / touch area works?
body: <p>1) If I have this, when I tap the child <code>Container</code> it doesn't print 'tap':</p>
  
  <pre><code>Container(
    color: Colors.red,
    child: GestureDetector(
      onTap: () =&gt; print('tap'),
      child: Container(
        width: 100,
        height: 100,
      ),
    ),
  ),
  </code></pre>
  
  <p>2) If I have this, when I tap the child <code>Container</code> it prints 'tap':</p>
  
  <pre><code>Container(
    color: Colors.red,
    child: GestureDetector(
      onTap: () =&gt; print('tap'),
      child: Container(
        width: 100,
        height: 100,
        decoration: BoxDecoration(),
      ),
    ),
  ),
  </code></pre>
  
  <p>3) If I have this, when I tap the child <code>Container</code>, outside the text, it prints 'tap':</p>
  
  <pre><code>Container(
    color: Colors.red,
    child: GestureDetector(
      onTap: () =&gt; print('tap'),
      child: Container(
        width: 100,
        height: 100,
        child: Text("A"),
      ),
    ),
  ),
  </code></pre>
  
  <p>Can someone explain me these 3 behaviors?</p>