ScrollShadow
is a widget for Flutter that adds shadows to a scrollable child.
Supports ScrollController
and vertical or horizontal orientation.
ScrollShadow |
- Adds shadows over a scrollable child while not at its max extents
- Supports vertical and horizontal
Axis
- Customizable animation duration
- Determine how wide or tall shadows render
Make sure to check out the examples on GitHub.
Add the following line to pubspec.yaml
:
dependencies:
flutter_scroll_shadow: <last-release>
Complete example available here.
ScrollShadow(
color: Colors.grey,
child: ListView(
children: List.generate(20, (index) => ListTile(title: Text('Element $index'),)),
),
);
scrollDirection
: Scroll direction corresponding to child; default:Axis.vertical
controller
: Optional for vertically scrolling content, but required if the child isAxis.horizontal
color
: for the shadows; default:Colors.grey
size
: The width or height of shadows, depending onAxis
; default:15.0
child
: Scrollable child contained by theScrollShadow
duration
: Milliseconds, as anint,
for animation of shadow visibility changes; default:300
Vertically-scrolling child | Horizontally-scrolling child |
Package | Verison | Score | Likes | Test | Coverage |
---|---|---|---|---|---|
Package | Verison | Score | Likes | Test | Coverage |
---|---|---|---|---|---|