Skip to content

Repository files navigation

flutter_scroll_shadow

Scroll Shadow

Pub PackagePub PointsPub Likes

Package IssuePackage License

ScrollShadow is a widget for Flutter that adds shadows to a scrollable child.

Supports ScrollController and vertical or horizontal orientation.

Image
ScrollShadow

Features

  • 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

Usage

Make sure to check out the examples on GitHub.

Installation

Add the following line to pubspec.yaml:

dependencies:
flutter_scroll_shadow: <last-release>

Basic setup

Complete example available here.

ScrollShadow(
color:Colors.grey,
child:ListView(
children:List.generate(20, (index) =>ListTile(title:Text('Element $index'),)),
),
);

Properties

  • color: for the shadows; default: Colors.grey
  • size: The width or height of shadows, depending on Axis; default: 15.0
  • child: Scrollable child contained by the ScrollShadow
  • duration: Milliseconds, as an int, for animation of shadow visibility changes; default: 300
  • fadeInCurve: The animation [Curve] to use for shadow appearance; default: Curves.easeIn
  • fadeOutCurve: The animation [Curve] to use for shadow disappearance; default: Curves.easeOut
  • ignoreInteraction: Determines if shadow is wrapped inside a [IgnorePointer] widget, so that all touch events with the shadow will be ignored; default: true

Example

ImageImage
Vertically-scrolling childHorizontally-scrolling child

📚 My open source projects

Flutter

PackageVerisonScoreLikesTestCoverage
Pub PackagePub PointsPub Likes
Pub PackagePub PointsPub Likes
Pub PackagePub PointsPub Likes
Pub PackagePub PointsPub Likes

Dart

PackageVerisonScoreLikesTestCoverage
Pub PackagePub PointsPub LikesTest CIcodecov
Pub PackagePub PointsPub LikesTest CIcodecov

About

Flutter widget to add shadow on scroll widgets

Topics

Resources

Stars

12 stars

Watchers

2 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages