title: Keyboard dismissed when showing alertdialog in flutter
body: <p>I have a text field in my Flutter app where a user can enter their name. They can press &quot;submit&quot;. But when a name is too short, I show a dialog.</p>
  <p>The problem: when the dialog is shown the keyboard gets automatically dismissed and the alert dialog jumps from above (when the keyboard is still active) to below (when the keyboard isn't active anymore, half a second later).</p>
  <p>Is it possible to keep the keyboard active when showing a dialog.
  Code:</p>
  <pre><code>  showDialog(
        context: context,
        builder: (_) =&gt; new AlertDialog(
                   title: Text(&quot;Error&quot;),
                   content:
                       Text(&quot;Name too short&quot;),
       ));
  ```
  </code></pre>