I am new to all this flutter thing. I searched everywhere to find a solution for this little problem.
Is there a way to change the status bar color?
Also when i use the a color like colors.blue i can see that the quality of the text in the status bar isn't good.
Thanks
appBar: AppBar(
elevation : 0.0,
leading: IconButton(
icon: Icon(Icons.menu),
tooltip: 'Navigation menu',
onPressed: null,
),
actions: <Widget>[
IconButton(
icon: Icon(Icons.search),
tooltip: 'Search',
onPressed: null,
),
],
),
Best Answer
@Antoine Basically you can set your theme Brightness, or you can manually override the appbar brightness using the following :
Do note that this will only switch between white and black status text color.
.dark
will make the status bar text WHITE, while.light
will make the status bar text BLACK.Maybe for a more custom color, like the comment said you can view SystemChrome class.