ElevatedButtonTheme

OutlineButton

ButtonTheme

OutlinedButton

OutlinedButtonTheme

Migration guide

In-depth migration guide available for detailed styling

Code before migration:

FlatButton

onPressed:

onPressed

child:

Text

'Button'

),

// ...

);

RaisedButton

onPressed:

onPressed

child:

Text

'Button'

),

// ...

);

OutlineButton

onPressed:

onPressed

child:

Text

'Button'

),