How to hide android's bottom navigation bar in flutter

孤街醉人 提交于 2020-05-25 04:52:07

问题


I'm really new in flutter and also in Android dev, but is it possible to hide the bottom navigation bar (see which item do i mean below) programmatically?


回答1:


Try this: SystemChrome.setEnabledSystemUIOverlays([SystemUiOverlay.top]);

Document




回答2:


Use SystemChrome.setEnabledSystemUIOverlays([]) to hide the status bar and the navigation bar.



来源:https://stackoverflow.com/questions/52365173/how-to-hide-androids-bottom-navigation-bar-in-flutter

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!