Component - Backdrop filter (blur effects)
This UI component shows how to apply a blur effect behind a widget using a backdrop filter. It creates a frosted glass look by blurring the background behind a semi-transparent container.
This UI component shows how to apply a blur effect behind a widget using a backdrop filter. It creates a frosted glass look by blurring the background behind a semi-transparent container.
Scaffold ├─ Stack │ ├─ Image (background) │ └─ BackdropFilter │ └─ Container (semi-transparent) └─ Center └─ Text
BackdropFilter widget do in Flutter?BackdropFilter in Flutter?ClipRect(
child: BackdropFilter(
filter: ImageFilter.blur(sigmaX: 10.0, sigmaY: 10.0),
child: Container(
color: Colors.black.withOpacity(0.2),
width: 100,
height: 100,
),
),
)BackdropFilter(
filter: ImageFilter.blur(sigmaX: 5.0),
child: Container(
color: Colors.white.withOpacity(0.5),
),
)Pass the test and this pattern moves unknown