使 Flutter 应用程序全屏 [英] Make flutter application fullscreen
问题描述
如何使 Flutter 应用程序全屏显示.我已经找到了如何隐藏状态栏 在 Flutter 应用程序上隐藏 Android 状态栏.但我似乎找不到如何隐藏 android 导航栏.
How can I make a flutter application fullscreen. I already found out how to hide the status bar Hide Android Status Bar On Flutter App. but I can't seem to find how to hide the android navigation bar.
推荐答案
和 Android 状态栏一模一样.
It's exactly like for Android status bar.
执行 SystemChrome.setEnabledSystemUIOverlays([])
隐藏状态栏和导航栏.
Doing SystemChrome.setEnabledSystemUIOverlays([])
hides both the status bar and the navigation bar.
p/s : 使用这个SystemChrome.setEnabledSystemUIOverlays(SystemUiOverlay.values);
禁用全屏模式.
p/s : use this
SystemChrome.setEnabledSystemUIOverlays(SystemUiOverlay.values);
to disable full screen mode.
这篇关于使 Flutter 应用程序全屏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!