Skip to content

Instantly share code, notes, and snippets.

@saliouseck2009
Created May 1, 2022 01:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save saliouseck2009/3317f1ed2c84271de032c449619211cb to your computer and use it in GitHub Desktop.
Save saliouseck2009/3317f1ed2c84271de032c449619211cb to your computer and use it in GitHub Desktop.
frosted glass effect
Stack(
children: [
Center(
child: Container(
height: 200,
width: 200,
decoration: new BoxDecoration(
borderRadius: BorderRadius.circular(20.0),
),
child: FlutterLogo(),
)),
new Center(
child: new ClipRect(
child: new BackdropFilter(
filter: new ImageFilter.blur(sigmaX: 10.0, sigmaY: 10.0),
child: new Container(
width: 200.0,
height: 200.0,
decoration: new BoxDecoration(
borderRadius: BorderRadius.circular(20.0),
color: Colors.grey.shade200.withOpacity(0.5)),
child: Center(child: Text("Censored",style: TextStyle(fontSize: 30),)),
),
),
),
),
],
),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment