glassmorphism
4.0.0, released 8 weeks ago by an unverified publisher
Create glassmorphic frosted glass containers with backdrop blur and gradient borders.
What it does
Provides customizable widgets like GlassmorphicContainer and GlassmorphicFlexContainer to produce frosted glass visual effects. It supports backdrop blur, gradient fills, gradient borders, custom drop shadows, and flexible sizing.
AI-written summary of version 4.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want to build a frosted glass UI design in your Flutter app.
- You need containers with backdrop blur, gradient borders, and clean drop shadows.
Skip it when
- You are targeting platforms or older devices where BackdropFilter performance or support is inadequate.
- You are rendering many overlapping blurred elements which can cause performance bottlenecks.
Strengths
- Supports sizing by child or fixed dimensions.
- Provides custom drop shadows that stay outside the translucent fill.
- Includes a flex-friendly variant for rows and columns.
Weaknesses
- Heavy usage of blurred backdrop filters can degrade rendering performance.
- Platform views like Google Maps or web views may not blur properly on iOS.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
Not documented
GlassmorphicContainer(
width: 350,
height: 350,
borderRadius: 20,
blur: 20,
border: 2,
linearGradient: const LinearGradient(
colors: [Color(0x1AFFFFFF), Color(0x0DFFFFFF)],
),
borderGradient: const LinearGradient(
colors: [Color(0x80FFFFFF), Color(0x80FFFFFF)],
),
child: const Text('Glass'),
)Alternatives
Packages that do the same job and could replace glassmorphism.
- gradient_borders
Gradient borders for Flutter inputs and containers
82Compare - glass
Turn any widget into frosted glass or Apple-style liquid glass with a single asGlass() call.
81Compare - blurrycontainer
Creates a frosted glass effect container with blur, color, elevation, and padding.
50Compare - blurbox
A Flutter package that applies customizable blur effects to its child widgets.
50Compare