title: Flutter: How to Keep TextField Focus on Submit?
body: <p>I'm using <a href="https://pub.dev/packages/flutter_tags" rel="noreferrer">https://pub.dev/packages/flutter_tags</a> for a tag input. A tag is added to the array of tags by pressing submit on the keyboard and the TextInput Field cleared.</p>
  <p>Now I have the problem that with a submit the keyboard also closes. So you have to press into the field again for every tag, which is not the sense of the thing. There are so many instructions on how to close the keyboard, but none on how to leave it open.</p>
  <p>When Submit is pressed, the field loses focus and thus the keyboard closes. My idea was, unfortunately without success, to set a new focus on onSubmitted. Unfortunately nothing happens here:</p>
  <pre><code>TextField(
      controller: myController,
      focusNode: myFocusNode,
      // more code
      onSubmitted: (String str) {
          myController.clear();
          myFocusNode.requestFocus();
      }
  )
  </code></pre>
  <p>Kind regards,</p>
  <p>Jakob</p>