我在我的Flutter应用程序中实现了带有背景图片的银色应用栏。我希望在银色应用栏处于展开模式时将标题隐藏,仅在折叠时显示标题。我该如何实现这种行为?
SliverAppBar(
expandedHeight: 250.0,
floating: false,
pinned: true,
title: Text("Coporate News"),
elevation: 8,
flexibleSpace: FlexibleSpaceBar(
centerTitle: true,
title: Text(""),
background: Stack(
children: [
Container(
height: 400,
child: Image.network(
news['url'],
fit: BoxFit.cover,
),
),
.......