Flutter 全屏应用.摆脱android上应用程序底部的空白区域 [英] Flutter fullscreen app. Getting rid of the blank white space at the bottom of the app on android
本文介绍了Flutter 全屏应用.摆脱android上应用程序底部的空白区域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用 SystemChrome.setEnabledSystemUIOverlays([]);
让我的 Flutter 应用全屏显示.
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.
推荐答案
可以在Scaffold
上设置resizeToAvoidBottomPadding
为false
Scaffold(
resizeToAvoidBottomPadding: false,
appBar: new AppBar(),
);
这篇关于Flutter 全屏应用.摆脱android上应用程序底部的空白区域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文