Skip to content
pubscout

fading_edge_scrollview

4.1.1, released 3 years ago by ponkin.dev

Build scrollable views with fading edges.

WASM-ready
$ flutter pub add fading_edge_scrollview
Source repository

What it does

Provides FadingEdgeScrollView to easily add fading edges to different scrollable views like ScrollView, SingleChildScrollView, PageView, AnimatedList, and ListWheelScrollView. It automatically hides the fade if the content is too small to be scrollable.

AI-written summary of version 4.1.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need a visual indicator that scrollable content extends beyond the current viewport.
  • You are using standard scrollable widgets and want fading edges applied easily.

Skip it when

  • The child scrollable view does not have a controller set.
  • You need custom scroll effects outside of the supported constructors.

Strengths

  • Supports multiple scrollable view types via dedicated constructors.
  • Automatically hides fades when content is too small to scroll.

Weaknesses

  • Requires the child view to explicitly have a controller set.
  • Scroll controller creation and disposal must be handled manually by a StatefulWidget after version 4.0.0.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
FadingEdgeScrollView.fromScrollView(
  gradientFraction: 0.1,
  child: ListView.builder(
    controller: _scrollController,
    itemBuilder: (context, index) => ListTile(title: Text('Item $index')),
  ),
)

Alternatives

Packages that do the same job and could replace fading_edge_scrollview.

Works with

Packages commonly used together with fading_edge_scrollview: ones it builds on, ones built on it, and its own family.