flutter_inner_shadow
0.0.1, released 4 years ago by an unverified publisher
Wrap any widget with an inner shadow effect
WASM-ready
$ flutter pub add flutter_inner_shadowWhat it does
This package provides an InnerShadow widget that applies an inner shadow to its child. It accepts a list of Shadow objects to customize the effect.
AI-written summary of version 0.0.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want a simple inner shadow on a widget
- You need a quick visual enhancement without custom painting
Skip it when
- You need complex or dynamic shadow effects
- Performance is critical and you want to avoid extra paint layers
Strengths
- Very small API, only one widget to use
- No external dependencies, works on all platforms
Weaknesses
- Limited to inner shadows only
- No support for dynamic or animated shadows
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
```dart
import 'package:flutter_inner_shadow/flutter_inner_shadow.dart';
InnerShadow(
shadows: [
Shadow(
color: Colors.black.withOpacity(0.25),
blurRadius: 10,
offset: Offset(2, 5),
),
],
child: Container(
width: 100,
height: 100,
decoration: BoxDecoration(
color: Colors.red,
borderRadius: BorderRadius.circular(10),
),
),
);
```Alternatives
Packages that do the same job and could replace flutter_inner_shadow.
- simple_shadow
Customizable drop shadow widget for any child
45Compare - shadow_widget
A widget that adds a shadow effect to any Flutter widget.
49Compare - inner_shadow_container
A Flutter widget for adding soft inner shadows to containers for neumorphic designs.
42Compare