shadow_overlay
1.0.5, released 4 years ago by afzl.me
Applies a gradient shadow overlay to images or widgets.
What it does
The shadow_overlay package puts a gradient shadow, default white, on your image or widget to make it fuse with the background. It is written entirely in Dart and works across all Flutter platforms.
AI-written summary of version 1.0.5, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want to apply a gradient transparency effect over images or widgets
- You need to fuse an image or widget smoothly with the background
Skip it when
- You need complex physics-based animations or custom shaders outside of standard gradient overlays
- You need advanced image editing or cropping capabilities
Strengths
- Straightforward usage with a single widget
- Pure Dart implementation compatible with all Flutter platforms
- Easy to integrate into existing layouts
Weaknesses
- Currently supports layout only from the bottom (per changelog notes)
- Documentation is sparse and relies primarily on code tooltips
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
ShadowOverlay(
child: Image.asset(
'path to your image',
height: 400,
width: 800,
),
shadowWidth: 800,
shadowHeight: 150,
);Alternatives
Packages that do the same job and could replace shadow_overlay.
- flutter_painter
A Flutter widget for drawing scribbles, text, shapes and images on a canvas.
74Compare - extended_text
An extension of Flutter's official Text widget for special inline content and custom overflow.
60Compare - gradient_circular_progress_indicator
A customizable circular progress widget with gradient progress value color.
50Compare - gradient_elevated_button
Custom elevated button with gradient background for Flutter apps
58Compare