首页 > 其他 > 详细

flutter 顶部状态栏 底部栏 显示和隐藏

时间:2020-11-24 15:04:56      阅读:239      评论:0      收藏:0      [点我收藏+]
        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);
                },
              ),

 

flutter 顶部状态栏 底部栏 显示和隐藏

原文:https://www.cnblogs.com/xiaochii/p/14030219.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!