当我打开flutter应用程序时,手机的电池图标和网络图标消失了。这是我的应用条码:
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),
),
],
)),
];
},如何让图标按默认方式显示?现在,图标消失了:

发布于 2021-01-17 22:06:07
使用小部件SafeArea,它将提供您想要的东西。将您的顶级小部件包含在其中。
https://stackoverflow.com/questions/65760936
复制相似问题