How do you style an elevated button?

The style of the button can be customized by creating a ButtonStyle . The ButtonStyle can be passed as ThemeData ‘s elevatedButtonTheme or ElevatedButton ‘s style . To pass the ButtonStyle as theme data, you have to create an ElevatedButtonThemeData with the ButtonStyle passed as style parameter in the constructor .

Read more