Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/flutter/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Flutter 从BackdropFilter中移除白色阴影_Flutter_Dart - Fatal编程技术网

Flutter 从BackdropFilter中移除白色阴影

Flutter 从BackdropFilter中移除白色阴影,flutter,dart,Flutter,Dart,我遇到的问题是BackdropFilter正在应用模糊,但在子对象的上边框上有一个白色阴影(请参见黑色背景的屏幕截图)。 移除该模糊的唯一方法是将sigmaY设置为0,但模糊不是均匀的。 我怎样才能修好它? 这是迄今为止的代码: return Container( color: Theme.of(context).accentColor, child: Column( mainAxisAlignment: MainAxisAlign

我遇到的问题是BackdropFilter正在应用模糊,但在子对象的上边框上有一个白色阴影(请参见黑色背景的屏幕截图)。 移除该模糊的唯一方法是将sigmaY设置为0,但模糊不是均匀的。 我怎样才能修好它? 这是迄今为止的代码:

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?