How to apply theme on MaterialButton or RaisedButton?

Posted by Andre Scott | Updated on

In this example, I have shred how to apply theme on MaterialButton or RaisedButton? One way to do it is to Define buttonTheme in theme in MaterialApp:

Text Color will be the accentColor define in the ThemeData as i have defined textTheme: ButtonTextTheme.accent so it will Pick accentColor.


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers