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