title: Gesture detection in Expanded Container
body: <p>I have an area of my widget that is created with an expanded container like:</p>
  <pre><code>child: Column(
    crossAxisAlignment: CrossAxisAlignment.stretch,
    children: [
      Container(
        color: Colors.blueGrey[200],
        child: Text(
          startTime,
          textAlign: TextAlign.left,
          style: TextStyle(
            backgroundColor: Colors.blueGrey[200],
            fontSize: 16,
            fontWeight: FontWeight.normal),
          ),
        ),
        Expanded(
          /* If this gesture detector is instantiated the tap is never found;
          child: GestureDetector(
          behavior: HitTestBehavior.translucent,
          onTap: () =&gt; print(&quot;OnTap&quot;),
          */
          child:
            Container(color: Colors.red[600]),
          //),
        ),  // Expanded
    ], // children
  ), // Column
  </code></pre>
  <p>If the above code is wrapped with this</p>
  <pre><code>Expanded(
    child: GestureDetector(
      behavior: HitTestBehavior.translucent,
      onTap: () =&gt; print(&quot;OnTap&quot;),
      child: Container(
        color: Colors.red[600],
        child: // Code above
      ), // Container
    ), //GestureDetector  
  ), // Expanded
  </code></pre>
  <p>Then the onTap is only registered in the text widget, but never in the last expanded container.</p>
  <p>Is it correct that the detection does not trigger on the Container and needs a widget to fill the space to be detected?</p>
  <p><strong>Edit</strong>
  I changed the gesture detection for the expanded container to be:</p>
  <pre><code>Expanded(
    child: Material(
      color: Colors.red[600],
      child: InkWell(
        onTap: () {print(&quot;InkWell&quot;);},
      ),  // InkWell
    ),  // Material
  ),  // Expanded
  </code></pre>
  <p>And the tap is still not recognized.</p>