Want to change the color of my app bar with search function add to it? There is a option known as backgroundColor in Appbar to change the color of your app bar.
1 2 3 4 5 6 | return new AppBar( backgroundColor: Colors.greenAccent, centerTitle: true, title: appBarTitle, actions: <Widget>[ ..... |
You can also set the theme data for your app in MaterialApp() like this:
1 2 3 4 5 6 | MaterialApp( theme: ThemeData( primarySwatch: Colors.red, brightness: Brightness.light, ...//other options ) |
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.