How to change the color of the status bar in Flutter App

0 votes

Hi Guys,

I am new in Flutter. I am trying to change the status bar color to green. How can I do that?

Jul 28, 2020 by akhtar
• 38,260 points
1,262 views

1 answer to this question.

0 votes

Hi@akhtar,

You need to import the package that contains the status bar property. You can import the below package in your program.

import 'package:flutter_statusbarcolor/flutter_statusbarcolor.dart';

After that add the below line in your app.

FlutterStatusbarcolor.setStatusBarColor(Colors.green);

For more information, you can visit the below link.

https://pub.dev/packages/flutter_statusbarcolor/example

answered Jul 28, 2020 by MD
• 95,460 points

Related Questions

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,460 points
3,575 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,460 points
9,213 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,460 points
6,423 views
0 votes
1 answer

How to change the background color of AppBar in Flutter?

Hi@akhtar, You can add backgroundColor keyword in your ...READ MORE

answered Aug 12, 2020 in Others by MD
• 95,460 points
2,178 views
0 votes
1 answer

How to capture the status change of a process in selenium, after the process is kickstarted(Run)

For your requirement of capturing and displaying ...READ MORE

answered Apr 14, 2020 in Selenium by Jake George
3,569 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,460 points
6,584 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,460 points
1,897 views
0 votes
1 answer

How to color code cells of a column based on the text value in Tableau

You can use the following steps to ...READ MORE

answered Mar 27, 2018 in Tableau by Atul
• 10,240 points
10,152 views
0 votes
1 answer

How to change the replication factor of specific directory in Hadoop?

Yes, you can change the replication factor ...READ MORE

answered May 11, 2018 in Big Data Hadoop by Shubham
• 13,490 points
3,768 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP