In this example, I'm going to share you code on how to set the status bar or system navigation bar color in Flutter.
Below is the output of the sample program. You can see that the Status bar and System navigation bar are blue in colour. If you are not changing them they will usually stay in black colour.
![](https://fluttercentral.com/Uploads/30b59f50-0764-47b9-8284-3a81709d1eba.PNGwidth="50%height="auto](
In order to achieve this, you need to import services.dart and add the following code to your main function. However, I've shared the complete example below.
And then add the below code to main function.
That's it. Your status bar and system navigation bar colour will be changed to blue now. You can try changing to other colours like red or yellow to see the impact.
Here is the code from main.dart file.
Hope this example is useful to you.
Thanks,Srikanth