drop_shadow_image
0.9.1, released 5 years ago by inerton.in
Widget that adds a drop shadow effect to an image with customizable properties.
WASM-ready
What it does
Provides a DropShadowImage widget that renders an image with a configurable shadow offset, blur, scale and border radius. All properties are set via constructor parameters, making it easy to integrate into any layout.
AI-written summary of version 0.9.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a simple drop‑shadow effect for local or network images without writing custom painters.
- You want quick visual styling with adjustable offset, blur and border radius.
Skip it when
- You require advanced image processing like cropping, filtering, or caching.
- Performance is critical and you need a highly optimized solution.
Strengths
- Very easy to use – just wrap your Image in DropShadowImage.
- Many shadow properties are exposed for fine‑grained control.
- Pure Dart, no native platform setup required.
Weaknesses
- Only provides shadow effect – no other image utilities.
- Package appears unmaintained since 2021.
- Limited to static images; no built‑in caching or network handling.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
import 'package:flutter/material.dart';
import 'package:drop_shadow_image/drop_shadow_lib.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: Center(
child: DropShadowImage(
offset: const Offset(10, 10),
blurRadius: 12,
borderRadius: 20,
image: Image.asset('assets/cat.png', width: 300),
),
),
),
);
}
}Alternatives
Packages that do the same job and could replace drop_shadow_image.