首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在flutter中默认显示电池图标、网络图标等

如何在flutter中默认显示电池图标、网络图标等
EN

Stack Overflow用户
提问于 2021-01-17 21:06:17
回答 1查看 142关注 0票数 0

当我打开flutter应用程序时,手机的电池图标和网络图标消失了。这是我的应用条码:

代码语言:javascript
复制
headerSliverBuilder: (BuildContext context, bool innerBoxIsScrolled) {
        return <Widget>[
          SliverOverlapAbsorber(
              handle: NestedScrollView.sliverOverlapAbsorberHandleFor(
                context,
              ),
              sliver: SliverAppBar(
                title: Text(
                  'Cruise',
                  style: TextStyle(
                    color: Theme.of(context).brightness == Brightness.light ? Colors.black : Colors.white,
                  ),
                ),
                pinned: true,
                expandedHeight: 10.0,
                floating: true,
                snap: true,
                forceElevated: innerBoxIsScrolled,
                actions: [
                  if (state.currentStoriesType == StoriesType.channels)
                    IconButton(
                      onPressed: () => {dispatch(HomeListActionCreator.onJumpAddChannel())},
                      icon: Icon(Feather.plus),
                    ),
                ],
              )),
        ];
      },

如何让图标按默认方式显示?现在,图标消失了:

EN

回答 1

Stack Overflow用户

发布于 2021-01-17 22:06:07

使用小部件SafeArea,它将提供您想要的东西。将您的顶级小部件包含在其中。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/65760936

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档