soft_edge_blur
0.1.3, released 2 years ago by raouf.dev
A widget that applies a soft progressive blur to one or more edges of its child.
What it does
Wrap any widget with SoftEdgeBlur to add a customizable blur effect along specified edges. You can control edge type, size, sigma, tint color, and gradient via control points.
AI-written summary of version 0.1.3, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a subtle blur effect on widget edges for UI polish
- You want to apply the effect to multiple edges simultaneously
- You need fine-grained control over blur intensity and tint
Skip it when
- You need a full-screen blur or background blur
- You require performance-critical blur on many widgets at once
Strengths
- Customizable per-edge blur and tint
- Supports multiple edges at once
- Control points allow gradient shaping
- No external dependencies
Weaknesses
- Limited to edge blur only
- No API for full-screen or background blur
- Performance may degrade with large blur sizes
- No built-in animation support
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
Add dependency to pubspec and import package
import 'package:soft_edge_blur/soft_edge_blur.dart';
SoftEdgeBlur(
edges: [
EdgeBlur(
type: EdgeType.topEdge,
size: 100,
sigma: 30,
controlPoints: [
ControlPoint(position: 0.5, type: ControlPointType.visible),
ControlPoint(position: 1, type: ControlPointType.transparent),
],
),
],
child: YourWidget(),
);Alternatives
Packages that do the same job and could replace soft_edge_blur.
- blurbox
A Flutter package that applies customizable blur effects to its child widgets.
50Compare - progressive_blur
An iOS-like progressive blur implementation for Flutter using shaders.
63Compare - shadex
A Flutter widget that adds soft, blurred shadow effects to any child widget.
43Compare - simple_shadow
Customizable drop shadow widget for any child
45Compare