Created
May 1, 2022 01:00
-
-
Save saliouseck2009/3317f1ed2c84271de032c449619211cb to your computer and use it in GitHub Desktop.
frosted glass effect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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