I use a Scafold which has an app bar with grey background and black as text color. I want to have the status bar transparent and the text also black. Unfortunately the text color is white not matter what I've treid. After reading this post and this one, I've tried the code below, but the text color is still white.
SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle.light.copyWith(
statusBarColor: Colors.black.withOpacity(0.0), // Color for Android
statusBarIconBrightness: Brightness.light,
statusBarBrightness: Brightness.light,
));
Update:
To make it more clear: In the emulator the bar looks like this which is fine: