I'm new to flutter.
I want to hide status bar only in splash screen. I have a specific color for the status bar too. Here is the code where i specified color for status bar.
i have used the following code in main method to give a specific color.
SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle(
statusBarIconBrightness: Brightness.dark,
statusBarColor: colorStyle.statusBar, // status bar color
Now I want to hide status bar only in Splash screen.
When i used
SystemChrome.setEnabledSystemUIOverlays([]);
in splash screen ,the status bar hide throughout the app.
How can i solve this problem.Please find me a solution.