How can I dismiss the on screen keyboard? : <p>I am collecting user input with a <code>TextFormField</code> and when the user presses a <code>FloatingActionButton</code> indicating they are done, I want to dismiss the on screen keyboard.</p>

<p>How do I make the keyboard go away automatically?</p>

<pre><code>import 'package:flutter/material.dart';

class MyHomePage extends StatefulWidget {
  MyHomePageState createState() =&gt; new MyHomePageState();
}

class MyHomePageState extends State&lt;MyHomePage&gt; {
  TextEditingController _controller = new TextEditingController();

  @override
  Widget build(BuildContext context) {
    return new Scaffold(
      appBar: new AppBar(),
      floatingActionButton: new FloatingActionButton(
        child: new Icon(Icons.send),
        onPressed: () {
          setState(() {
            // send message
            // dismiss on screen keyboard here
            _controller.clear();
          });
        },
      ),
      body: new Container(
        alignment: FractionalOffset.center,
        padding: new EdgeInsets.all(20.0),
        child: new TextFormField(
          controller: _controller,
          decoration: new InputDecoration(labelText: 'Example Text'),
        ),
      ),
    );
  }
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
      home: new MyHomePage(),
    );
  }
}

void main() {
  runApp(new MyApp());
}
</code></pre>
