Less than 4 months ago I remember that I had to create a custom action to change the color of the status bar. Something like this:
Future setStatusBarYellow() async {
SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle(
statusBarColor: Color(0xFFF7C325),
statusBarIconBrightness: Brightness.dark, // Android, dark icons
statusBarBrightness: Brightness.light, // iOS, light background (dark icons)
));
}
While this method still works to set the status bar color, I see that it is now unnecessary because the status bar color is set by the app bar.
So, a technique that can be followed is to import the app bar and make it only 1px high, but with the color that one wants it to have.
This didn't work in the past, right? I remember that in Android, in light mode, the status bar would appear transparent, instead of my background color, which was white.
Can anyone confirm if this change actually occurred?