I used SystemChrome.setEnabledSystemUIOverlays([]);
to make my flutter app full screen.
The status bar is gone for good, but I get this white space at the bottom where the nav bar used to be.
You can set resizeToAvoidBottomPadding
to false
on Scaffold
Scaffold(
resizeToAvoidBottomPadding: false,
appBar: new AppBar(),
);
this code work for me, thx
@override
Widget build(BuildContext context) {
SystemChrome.setEnabledSystemUIOverlays([]);
return Scaffold(
resizeToAvoidBottomPadding: false
)
}
resizeToAvoidBottomPadding has been deprecated and now you have to use resizeToAvoidBottomInset
Updated code below:
@override
Widget build(BuildContext context) {
SystemChrome.setEnabledSystemUIOverlays([]);
return Scaffold(
resizeToAvoidBottomInset: false
)
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With