I have a page that I want to have different style, I've tried to change status bar color from example through SystemChrome like this:
class PageState extends State<Page> {
@override
void initState() {
SystemChrome.setSystemUIOverlayStyle(
SystemUiOverlayStyle(statusBarColor: Colors.white));
super.initState();
}
}
And also set up appBar theme:
appBar: AppBar(
brightness: Brightness.light,
backgroundColor: Colors.white,
)
But status bar still uses default color from home page.
Also worth mentioning that if I try to change color with this method on home page it works just fine.