title: Flutter: how to make a TextField with HintText but no Underline?
body: <p>This is what I'm trying to make:</p>
  
  <p><a href="https://i.stack.imgur.com/x266f.png" rel="noreferrer"><img src="https://i.stack.imgur.com/x266f.png" alt="enter image description here"></a></p>
  
  <p>In the Flutter docs for Text Fields (<a href="https://flutter.io/text-input/" rel="noreferrer">https://flutter.io/text-input/</a>) it says you can remove the underline by passing <code>null</code> to the decoration. However, that also gets rid of the hint text. </p>
  
  <p>I do not want any underline whether the text field is focused or not. </p>
  
  <p><strong>UPDATE:</strong> updated accepted answer to reflect changes in Flutter SDK as of April 2020.</p>