What is a FlatButton?

A flat button is a text label displayed on a (zero elevation) Material widget that reacts to touches by filling with color . Use flat buttons on toolbars, in dialogs, or inline with other content but offset from that content with padding so that the button’s presence is obvious.

Read more

What replaced FlatButton Flutter?

The FlatButton , RaisedButton and OutlineButton widgets have been replaced by TextButton , ElevatedButton , and OutlinedButton respectively. Each new button class has its own theme: TextButtonTheme , ElevatedButtonTheme , and OutlinedButtonTheme . The original ButtonTheme class is no longer used.

Read more