I'm coding an app with flutter. But for some strange manner the android statusbar is hiding when I open my app. I don't want that. Is there a reason why this is happening?
This is what I want to achieve: Goal
This is what I have: My App Screenshot
I'm coding an app with flutter. But for some strange manner the android statusbar is hiding when I open my app. I don't want that. Is there a reason why this is happening?
This is what I want to achieve: Goal
This is what I have: My App Screenshot
Thank you for the quick answer. The sad thing is that I already do that:
@override
Widget build(BuildContext context) {
return Scaffold(
key: _scaffoldKey,
body: SafeArea(
child: Center(
child: ListView(
shrinkWrap: true,
children: [
Center(
child: Text(
_pageTitle,
style: Theme.of(context).textTheme.headline1,
),
),
Center(child: Text(_pageSubTitle)),
loginForm(context),
],
),
),
),
);
}
But it sadly dosen't work
And I also set the systemvalues in my main function:
void main() {
SystemChrome.setEnabledSystemUIOverlays(SystemUiOverlay.values);
SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle(
systemNavigationBarColor: MAIN_LIGHT_GREEN, // navigation bar color
statusBarColor: MAIN_LIGHT_GREEN,
statusBarIconBrightness: Brightness.dark,
systemNavigationBarIconBrightness: Brightness.light,
statusBarBrightness: Brightness.light,
));
runApp(MyApp());
}
Show Status Bar :-
SystemChrome.setEnabledSystemUIOverlays(SystemUiOverlay.values);
Show tansparent Status Bar :-
SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle(
statusBarColor: Colors.transparent,
));