Skip to content
pubscout

drop_shadow

0.1.0, released 4 years ago by rei.codes

Add drop shadow effects to any Flutter widget easily.

WASM-ready
$ flutter pub add drop_shadow
Source repository

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.