1

as title say I'd like to create a ui like this but I can't obtain the same result.

enter image description here

Right now I'm using this code:

 @override
  Widget build(BuildContext context) {
    return Container(
      decoration: BoxDecoration(
        image: DecorationImage(
          image: AssetImage('images/greydrop.jpeg'),
          fit: BoxFit.cover,
        ),
      ),
      child: BackdropFilter(
        filter: ImageFilter.blur(sigmaX: 10.0, sigmaY: 10.0),
        child: Scaffold(
          backgroundColor: Colors.white.withOpacity(0.6),
          appBar: AppBar(...),
          body : ....



I'm using an image with different type of grey. My result is the follow : enter image description here

Soasa
  • 65
  • 8
  • Does this answer your question? [How do I do the "frosted glass" effect in Flutter?](https://stackoverflow.com/questions/43550853/how-do-i-do-the-frosted-glass-effect-in-flutter) – Md. Yeasin Sheikh Mar 24 '22 at 13:52

1 Answers1

1

As you are using a plain grey image you cannot see the distortion happening I guess.

Try using a colored background like THIS in the same code.

Nagulan S
  • 617
  • 5
  • 11