A TextButton widget is just a text label displayed on a zero elevation Material widget. By default, it doesn’t have visible borders and reacts to touches by filling with a background color.

Adding Action

To perform any action, add an Action in the TextButton. You can find the instructions on adding the Action here.