Skip to content

Latest commit

History

History
37 lines (20 loc) 路 1.05 KB

File metadata and controls

37 lines (20 loc) 路 1.05 KB

How to Style an ElevatedButton in Flutter

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 馃檹

Also published on codewithandrea.com 馃憞


Previous Next
How to Generate Fake data with the Faker package How to Validate a TextField in Flutter