I want to create the following background effect like in Android. I have used Backdrop filter and created the blur effect, but it's not the desired one
It's not a blur effect but color opacity.
Opacity(
opacity: animation.value * 0.5,
child: Container(
height: MediaQuery.of(context).size.height,
width: MediaQuery.of(context).size.width,
color: Colors.black,
),
),
If you don't need it dynamic you can just use
Container(
foregroundDecoration: BoxDecoration(
color: Colors.black.withOpacity(0.5)
),
child: yourChild,
),
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.