flutter_scroll_shadow
1.2.6, released 2 years ago by insideapp.it
Adds customizable scroll shadows to scrollable Flutter children.
What it does
ScrollShadow is a single-purpose widget that automatically displays fade-in/fade-out shadows at the edges of a scrollable child (such as a ListView) when the content is scrollable in that direction and not at its maximum extents. It supports both vertical and horizontal orientations and customizable animation durations, curves, sizes, and colors.
AI-written summary of version 1.2.6, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want to indicate to users that a list or scrollable view has more content to scroll through.
- You need a clean shadow effect on a scrollable container without manually managing a ScrollController.
Skip it when
- You need complex physics-based scroll indicators or scroll bars instead of gradient shadows.
- Targeting platforms where edge fading shadows conflict with design guidelines.
Strengths
- Supports vertical and horizontal scrolling axes.
- Works with or without an explicit ScrollController.
- Allows nesting multiple ScrollShadow widgets without interference.
Weaknesses
- Limited to applying gradient shadows at scroll extents.
- Does not replace a scrollbar or thumb indicator.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
ScrollShadow(
color: Colors.grey,
child: ListView(
children: List.generate(20, (index) => ListTile(title: Text('Element $index'),)),
),
);Alternatives
Packages that do the same job and could replace flutter_scroll_shadow.
- shadow_widget
A widget that adds a shadow effect to any Flutter widget.
49Compare - scroll_to_index
Scroll to a specific child of any scrollable widget in Flutter.
50Compare - drop_shadow
Add drop shadow effects to any Flutter widget easily.
48Compare - simple_shadow
Customizable drop shadow widget for any child
45Compare
Works with
Packages commonly used together with flutter_scroll_shadow: ones it builds on, ones built on it, and its own family.