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'm wanting to blur the DecorationImage
, so I added a BackdropFilter
to the Container, but I don't see any change. What am I doing wrong?
It's better if you put in
ClipRRect
, like this :This case apply for Image (Thumbnail) list items correctly.
You could do something like this, by blurring the container child instead.
Screenshot
All the above answers are correct, I'll reply to @user123456 here since I can't comment yet.
Just wrap the whole Container with a GestureDetector
Output: