2

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!

2
  • Add theme_color (or change it) in the manifest file to desired color.
    – Saman
    Dec 19, 2021 at 9:30
  • 1
    Tried that in manifest.json but its not changing at all.
    – Arijeet
    Dec 20, 2021 at 4:17

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.