aura_box
1.0.2, released 3 years ago by lorenzogangemi.com
Widget that layers radial gradients with blur for decorative backgrounds.
What it does
AuraBox lets you stack multiple radial gradient spots with optional blur to create glowing or aura effects. Each spot is positioned via an Alignment and can be customized with color, radius, blur, and stops.
AI-written summary of version 1.0.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- Adding subtle glowing backgrounds to UI elements
- Creating decorative overlays for cards or buttons
- Prototyping visual effects without heavy animation code
Skip it when
- Building complex interactive animations
- Needing high-performance particle systems
- Requiring non-radial gradient shapes
Strengths
- Simple API with AuraBox and AuraSpot
- Highly customizable spots (color, radius, blur, stops)
- No external dependencies beyond Flutter
Weaknesses
- Limited to radial gradients only
- No built‑in interactivity or animation support
- Potential performance impact on low‑end devices if many spots are used
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
```dart
import 'package:aura_box/aura_box.dart';
AuraBox(
spots: [
AuraSpot(
color: Colors.blue,
radius: 100.0,
alignment: Alignment.center,
blurRadius: 5.0,
stops: const [0.0, 0.5],
),
AuraSpot(
color: Colors.red,
radius: 150.0,
alignment: Alignment.bottomRight,
blurRadius: 10.0,
stops: const [0.0, 0.7],
),
],
decoration: BoxDecoration(
color: Colors.transparent,
shape: BoxShape.rectangle,
borderRadius: BorderRadius.circular(10.0),
),
child: const SizedBox(height: 100, width: 100),
)
```Alternatives
Packages that do the same job and could replace aura_box.
- glass
Turn any widget into frosted glass or Apple-style liquid glass with a single asGlass() call.
81Compare - glassmorphism
Create glassmorphic frosted glass containers with backdrop blur and gradient borders.
77Compare - anydrawer
Flutter drawer widget that slides from any edge without requiring a Scaffold.
75Compare - parallax_rain
Widget that renders customizable 3D rain effect
75Compare