);

),

),

onPressed:

()

},

child:

Text

'OutlinedButton with custom shape and border'

),

Timeline

Landed in version: 1.20.0-0.0.pre
In stable release: 2.0

References

API documentation:

ButtonStyle

ButtonStyleButton

ElevatedButton

ElevatedButtonTheme

ElevatedButtonThemeData

OutlinedButton

OutlinedButtonTheme

OutlinedButtonThemeData

TextButton

TextButtonTheme

TextButtonThemeData

Relevant PRs:

PR 59702: New Button Universe