flutter_scroll_shadow 0.1.0-alpha flutter_scroll_shadow: ^0.1.0-alpha copied to clipboard
Scroll shadow widget for Flutter. This widget add on scroll widget a shadow, work on widget with ScrollController with vertical or horizontal orientation.
flutter_scroll_shadow #
Scroll shadow widget for Flutter. This widget add on scroll widget a shadow, work on widget with ScrollController with vertical or horizontal orientation.
ScrollShadow |
Features #
- Add on scroll widget a shadow
- Vertical and Horizontal axis
- Animation time customizable
- Shadow size customizable
Usage #
Make sure to check out examples.
Installation #
Add the following line to pubspec.yaml
:
dependencies:
flutter_scroll_shadow: ^0.1.0-alpha
Basic setup #
The complete example is available here.
ScrollShadow(
color: Colors.grey,
child: ListView(
children: List.generate(20, (index) => ListTile(title: Text('Element $index'),)),
),
);
Advanced options #
Property
scrollDirection
Axis, is a direction of scroll, Default: Axis.verticalScrollController
(Optional) necessary if child scroll used an external controller or scrollDirection = Axis.horizontalcolor
is a color of shadow, Default: Colors.greysize
is a size of shadow, Default: 15child
The child contained by the ScrollShadow.animationDuration
in milliseconds, it's duration time of animation duration on shadow visible status change
Example #
Vertical axis | Horizontal axis |