title: How to listen to keyboard on screen Flutter?
body: <p>I am building a mobile app, I want to remove a widget when the keyboard appears on the screen, i.e when the input text field is on focus.</p>
  <p>I have tried to use <code>RawKeyboardListener</code> but that doesn't seem to work, my code is as below:</p>
  <pre class="lang-dart prettyprint-override"><code>new Container(
    child: new RawKeyboardListener(
      focusNode: new FocusNode(),
      onKey: (input) =&gt; debugPrint(&quot;*****KEY PRESSED&quot;),
      child: new TextField(
        controller: new TextEditingController(),
      ),
    ),
  );
  </code></pre>