How to change the background color of AppBar in Flutter

0 votes

Hi Guys,

I have created one flutter app. I want to change the background color of Appbar. How can I do that?

Aug 12, 2020 in Others by akhtar
• 38,180 points
956 views

1 answer to this question.

0 votes

Hi@akhtar,

You can add backgroundColor keyword in your Material design. I have attached the below code for your reference.

MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          backgroundColor: Colors.grey,
                    title: Text('Welcome To my Page!!!'),
        ),),),
answered Aug 12, 2020 by MD
• 95,140 points

Related Questions In Others

0 votes
2 answers

How to get the URL of the current tab in Google Chrome?

Its so simple.... If you want to ...READ MORE

answered Aug 12, 2020 in Others by Steve
• 200 points
309 views
0 votes
1 answer

How to check the connected device name in Flutter?

Hi@akhtar, Flutter has its command own command to ...READ MORE

answered Jul 17, 2020 in Others by MD
• 95,140 points
682 views
0 votes
1 answer

How to use hexadecimal color strings in Flutter?

Hi@akhtar, In Flutter the Color class only accepts integers as parameters, or there ...READ MORE

answered Jul 24, 2020 in Others by MD
• 95,140 points
112 views
0 votes
1 answer

How to change package name in flutter?

Hi@akhtar, To change the label name in your  Flutter ...READ MORE

answered Aug 27, 2020 in Others by MD
• 95,140 points
952 views
0 votes
1 answer

What is pubspec.yaml file in Flutter?

Hi@akhtar, It is the project's configuration file that ...READ MORE

answered Jul 20, 2020 in Others by MD
• 95,140 points
780 views
0 votes
1 answer

Error: No pubspec.yaml file found.

Hi@akhtar, You need to run this command from ...READ MORE

answered Jul 20, 2020 in Others by MD
• 95,140 points
2,886 views
0 votes
1 answer

How to launch an emulators from Flutter?

Hi@akhtar, Before launching emulators you should check if ...READ MORE

answered Jul 20, 2020 in Others by MD
• 95,140 points
1,432 views
0 votes
1 answer

How to change the project name in Flutter App?

Hi@akhtar, If you want to change the name ...READ MORE

answered Sep 3, 2020 in Others by MD
• 95,140 points
2,600 views
0 votes
1 answer

How to retrieve the value of a text field in Flutter App?

Hi@akhtar, In your TextField, you can call one ...READ MORE

answered Sep 3, 2020 in Others by MD
• 95,140 points
430 views