title: Flutter - Detect TexField on tap
body: <p>I maked a flutter app in windows and all works, but when i tried to compile to iOS throw a unexpected error. In the Textfield detects that the 'onTap'  isn´t a a correct parameter. I don´t know what happens, in windows doesn´t return this error. Anyway. anybody know how fix this and what is the correct way to detect 'onTap' on texfield?  </p>
  
  <pre><code> new Container(
            color: Colors.blue[300],
            child: new Padding(
              padding: const EdgeInsets.all(8.0),
              child: new Card(
                child: new ListTile(
                  leading: new Icon(Icons.search),
                  title: new TextField(
                    onTap: () { &lt;--- The named parameter 'onTap' isn´t defined
                      Navigator.push(
                          context,
  </code></pre>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I tried this but doesn´t work</p>
  
  <pre><code> title: new GestureDetector(
              child: new TextField(
            controller: searchController,
            decoration: new InputDecoration(
                hintText: 'Buscar parcela', border: InputBorder.none),
          )),
          onTap: () {
            Navigator.push(
                context,
                new MaterialPageRoute(
                    builder: (context) =&gt; new EstatesPage(
                        parcela: widget.parcela,
                        dropdownItem: dropdownSelection)));
          },
  </code></pre>
  
  <p><strong>UPDATE 2</strong>: SOLUTION</p>
  
  <p>I updated flutter and brew. The error disappeared.</p>