Text

'Button'

),

// ...

);

Code after migration:

TextButton

onPressed:

onPressed

child:

Text

'Button'

),

// ...

);

ElevatedButton

onPressed:

onPressed

child:

Text

'Button'

),

// ...

);

OutlinedButton

onPressed:

onPressed

child:

Text

'Button'

),

// ...

);

References

Design document: