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,220 points
1,225 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,320 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,320 points
1,242 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,320 points
4,659 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,320 points
2,878 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,320 points
1,147 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
814 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,320 points
4,399 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,320 points
539 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,230 points
7,537 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,480 points
2,108 views