Skip to content
pubscout

shadow_overlay

1.0.5, released 4 years ago by afzl.me

Applies a gradient shadow overlay to images or widgets.

WASM-ready
$ flutter pub add shadow_overlay
Source repository

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.