how to change the status bar color in flutter web app?

Viewed 337

I am designing a simple web app and the use case requires the status bar color to change as soon as the browser opens.

I tried using the below mentioned code but it seems to work only on android. I want it to work in flutter web. Any solutions or ideas would be appreciated.

void main() {
  SystemChrome.setSystemUIOverlayStyle(const SystemUiOverlayStyle(
    statusBarColor: Color(0xffff3838),
  ));
  configureApp();
  runApp(const MyApp());
}

But the results come as :

enter image description here

I want to change this blue color to orange.

Thank you!

0 Answers
Related