@override
Widget build(BuildContext context) {
SystemChrome.setSystemUIOverlayStyle(
const SystemUiOverlayStyle(statusBarColor: Colors.white));
return MaterialApp(
I used this code to change the status bar color on one screen, when I nevigate to the next screen I have a different color on that using the same lines of code. But the problem is that when I navigate back to this page it doesn't change it back to white, it only changes when the page is loaded initally. Please guide me.