Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Widget build(BuildContext context) {
- var size = MediaQuery.of(context).size.width - 75;
- return Container(
- height: size,
- width: size,
- child: Stack(
- alignment: Alignment.center,
- children: <Widget>[
- Image(imageUri: "...", size: size - 30), // this is just a container with the image
- Positioned(
- top: 100,
- left: 100,
- bottom: 100,
- right: 100,
- child: BackdropFilter(
- filter: ImageFilter.blur(
- sigmaX: 5,
- sigmaY: 5,
- ),
- child: Container(
- color: Color(0x66FF0000),
- ),
- ),
- )
- ],
- ),
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement