The frosted glass effect is a cool UI concept in the flutter that makes our UI look more attractive. It is basically a blurred-out overlay with reduced opacity, to distinguish or diminish a certain view. This feature really looks good but it affects the app’s performance. So, let’s see how can we implement the frosted glass effect in flutter.
It is pretty easy to implement in the flutter by using the BackdropFilter() widget along with the ImageFilter class. BackdropFilter() widget in Flutter is used to blur images, containers, or many other widgets as well. It works both on iOS and android. It is used to highlight the content which needs more focus and blur the content that needs less focus.
Step 1: Create a simple flutter project.
Step 2: Create a container and wrap it up with BackdropFilter and ClipRect. Now add a property of backdrop filter, filter: ImageFilter.blur, and add sigma X, sigmaY. Higher the sigmaX and sigmaY, the higher the blur.
Specializes in iOS and Flutter development with expertise in Swift, Storyboards, MVVM and Auto Layout. Focused on improving app performance and managing Apple Developer Account effectively.
2 comments