title: Flutter 2.0 - How to change TextButton splash color when pressed?
body: <pre><code>FlatButton is deprecated and shouldn't be used. Used TextButton instead.
  </code></pre>
  <p>On my previous <code>FlatButton</code> widget, I was able to changed the splash color when on pressed. But now I'm using <code>TextButton</code> widget, how can I change its color the efficient way on the <code>MaterialApp ThemeData</code> or directly on the <code>TextButton</code> widget.</p>
  <p>Currenly this is my TextButton</p>
  <pre><code>TextButton(
    style: TextButton.styleFrom(
      primary: Colors.red,
      textStyle: TextStyle(
        color: Colors.black45,
        fontFamily: &quot;Courier Prime&quot;,
      ),
      backgroundColor: Colors.transparent,
    ),
    onPressed: () {},
    child: Text(
      &quot;Student&quot;,
      style: TextStyle(fontWeight: FontWeight.bold),
    ),
  ),
  </code></pre>
  <pre><code>overlayColor is used to indicate that the button is focused, hovered, or pressed.
  </code></pre>
  <p>But I cant find this <code>overlayColor</code></p>