I have the background of my app set like so
(我的应用背景如下)
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new MaterialApp(
home: new Container(
decoration: new BoxDecoration(
image: new DecorationImage(
image: new ExactAssetImage('assets/lol/aatrox.jpg'),
fit: BoxFit.cover,
),
),
child: new BackdropFilter(filter: new ImageFilter.blur(sigmaX: 600.0, sigmaY: 1000.0)),
width: 400.0,
),
);
}
}
I am wanting to blur the DecorationImage, so I added a BackdropFilter to the Container, but I don't see any change.
(我想模糊DecorationImage,所以我向容器添加了一个BackdropFilter,但是没有看到任何变化。)
What am I doiing wrong? (我在做什么错?)
ask by ErraticFox translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…