So how do you style an ElevatedButton in Flutter?
Glad you asked. This is the simplest way:
Of course, ButtonStyle has many properties.
As usual, the documentation is your friend:
Want a consistent style across all ElevatedButtons in your app?
Then set ThemeData.elevatedButtonTheme in your MaterialApp and you're good to go:
Found this useful? Show some love and share the original tweet 馃檹
Previous | Next |
---|---|
How to Generate Fake data with the Faker package | How to Validate a TextField in Flutter |