flutter 顶部状态栏 底部栏 显示和隐藏
时间:2020-11-24 15:04:56
收藏:0
阅读:242
RaisedButton( child: Text(‘顶部 底部 状态栏都不显示‘), onPressed: () { SystemChrome.setEnabledSystemUIOverlays([]); }, ), RaisedButton( child: Text(‘只显示顶部状态栏‘), onPressed: () { SystemChrome.setEnabledSystemUIOverlays( [SystemUiOverlay.top]); }, ), RaisedButton( child: Text(‘只显示底部状态栏‘), onPressed: () { SystemChrome.setEnabledSystemUIOverlays( [SystemUiOverlay.bottom]); }, ), RaisedButton( child: Text(‘顶部 底部 都显示状态栏‘), onPressed: () { SystemChrome.setEnabledSystemUIOverlays( SystemUiOverlay.values); }, ),
原文:https://www.cnblogs.com/xiaochii/p/14030219.html
评论(0)