Flutter 从BackdropFilter中移除白色阴影
我遇到的问题是BackdropFilter正在应用模糊,但在子对象的上边框上有一个白色阴影(请参见黑色背景的屏幕截图)。 移除该模糊的唯一方法是将sigmaY设置为0,但模糊不是均匀的。 我怎样才能修好它? 这是迄今为止的代码:Flutter 从BackdropFilter中移除白色阴影,flutter,dart,Flutter,Dart,我遇到的问题是BackdropFilter正在应用模糊,但在子对象的上边框上有一个白色阴影(请参见黑色背景的屏幕截图)。 移除该模糊的唯一方法是将sigmaY设置为0,但模糊不是均匀的。 我怎样才能修好它? 这是迄今为止的代码: return Container( color: Theme.of(context).accentColor, child: Column( mainAxisAlignment: MainAxisAlign
return Container(
color: Theme.of(context).accentColor,
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
SizedBox(height: 5,),
SizedBox(
height: headerHeight,
child: Container(
decoration: new BoxDecoration(
image: new DecorationImage(
image: Image.network("https://coolbackgrounds.io/images/backgrounds/black/pure-black-background-f82588d3.jpg").image,//homeData.imageFromString.image,
fit: BoxFit.cover,
),
),
child: ClipRect(
child: BackdropFilter(
filter: ImageFilter.blur(sigmaX: 5.0, sigmaY: 15.0),
child: Container(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Expanded(
child: Row(),
),
CircleAvatar(
radius: 50,
backgroundColor: Colors.blueGrey,
backgroundImage: homeData.imageFromString.image,
),
SizedBox(
height: 10,
),
Text(
homeData.name,
style: TextStyle(fontSize: 30.0, color: Colors.white),
),
Expanded(
child: Row(),
),
],
),
),
),
),
),
您是否尝试在此处将标高设置为0?对不起,您要在哪个小部件中添加标高=0?