drop_shadow
0.1.0, released 4 years ago by rei.codes
Add drop shadow effects to any Flutter widget easily.
WASM-ready
What it does
Provides a DropShadow widget that applies customizable drop shadow effects to any child widget in Flutter. Allows configuration of blur radius, border radius, offset, opacity, spread, and color.
AI-written summary of version 0.1.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to apply a drop shadow to arbitrary widgets without custom painting.
- You want simple configuration for blur, offset, and opacity of shadows.
Skip it when
- You are already using container decoration or boxes that natively support shadows and don't need a wrapper.
Strengths
- Simple widget wrapper approach
- Customizable shadow parameters like blur, spread, and color
- Works across multiple platforms including Android, iOS, and Web
Weaknesses
- Limited documentation beyond basic parameters
- Wrapper widget approach can add extra depth to the widget tree
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
DropShadow(
child: Image.network(
'https://images.pexels.com/photos/1191639/pexels-photo-1191639.jpeg',
width: 250,
),
);Alternatives
Packages that do the same job and could replace drop_shadow.
- shadow_widget
A widget that adds a shadow effect to any Flutter widget.
49Compare - parallax_rain
Widget that renders customizable 3D rain effect
75Compare - shadex
A Flutter widget that adds soft, blurred shadow effects to any child widget.
43Compare - auto_hyphenating_text
A drop-in replacement for the default text widget that automatically adds hyphenation.
65Compare