我想删除上图中突出显示的边框。我找不到任何解决方案来解决这个问题:(
这是我的SliverAppBar Code:
NestedScrollView(
headerSliverBuilder: (BuildContext ctx, isScrolled) {
return <Widget>[
SliverAppBar(
title: Text('Applying to this job opportunity'),
pinned: true,
titleSpacing: 0,
floating: true,
expandedHeight: 180,
flexibleSpace: //some widgets
)
]
}
)
最佳答案
只需将elevation
属性设置为0
即可。
SliverAppBar(
title: Text('Applying to this job opportunity'),
pinned: true,
elevation: 0,
titleSpacing: 0,
floating: true,
expandedHeight: 180,
flexibleSpace: //some widgets
)
更多信息:https://api.flutter.dev/flutter/material/SliverAppBar/elevation.html