1

this is my code to change system status bar color

void systemUiConfig({
  Color statusBarColor = Colors.white,
  Color navigationColor = Colors.white,
  Brightness statusBarIcon = Brightness.dark,
  Brightness navigationBarIcon = Brightness.dark,
}) {
  return SystemChrome.setSystemUIOverlayStyle(
    SystemUiOverlayStyle(
      statusBarColor: statusBarColor,
      statusBarIconBrightness: statusBarIcon,
      systemNavigationBarColor: navigationColor,
      systemNavigationBarIconBrightness: navigationBarIcon,
    ),
  );
}

and this is how I am using it

@override
void initState() {
  super.initState();

  systemUiConfig(
    statusBarColor: AppColors.lightBackground,
    navigationColor: AppColors.lightBackground,
  );
}
  • up to android 14 it works perfectly but in android 15+ color of the status bar not changes
  • in recent changes of android 15 . they introduced edge to edge feature may be because of this that issue may come.. can any one help me? in this

this is link of android changes

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.