无法删除银色应用栏中的后退按钮
Not able to remove the back button in sliver app bar
我在下面使用 SliverAppBar
,当我通过 Navigation.pushReplacement
到达此页面时,我想删除后退按钮
此 SliverAppBar 嵌套在 return 嵌套在底部栏导航中的页面中。
我应该如何删除后退按钮
SliverAppBar(
expandedHeight: 120.0,
floating: true,
pinned: false,
snap: true,
elevation: 40,
backgroundColor: Colors.orange,
flexibleSpace: FlexibleSpaceBar(
centerTitle: true,
title: Padding(
padding: const EdgeInsets.only(top: 25),
child: Text('Hello'),
),
),
),
添加automaticallyImplyLeading = false
SliverAppBar中有一个属性automaticallyImplyLeading。将此设置为假。默认为真。
有关详细信息,请访问 here
我在下面使用 SliverAppBar
,当我通过 Navigation.pushReplacement
此 SliverAppBar 嵌套在 return 嵌套在底部栏导航中的页面中。
我应该如何删除后退按钮
SliverAppBar(
expandedHeight: 120.0,
floating: true,
pinned: false,
snap: true,
elevation: 40,
backgroundColor: Colors.orange,
flexibleSpace: FlexibleSpaceBar(
centerTitle: true,
title: Padding(
padding: const EdgeInsets.only(top: 25),
child: Text('Hello'),
),
),
),
添加automaticallyImplyLeading = false
SliverAppBar中有一个属性automaticallyImplyLeading。将此设置为假。默认为真。
有关详细信息,请访问 here