【发布时间】:2021-04-21 22:46:21
【问题描述】:
当我打开 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),
),
],
)),
];
},
如何使图标默认显示?现在这个图标消失了:
【问题讨论】:
-
你有没有尝试用 SafeArea() 包围脚手架或身体,youtube.com/watch?v=lkF0TQJO0bA@Dolphin
标签: flutter