scris / fading_edge_scrollview

Flutter library for displaying fading edges on scroll views

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fading_edge_scrollview

Package providing FadingEdgeScrollView which allows you to build scrollable views with fading edges

Usage

Create FadingEdgeScrollView by calling one of constructors depending on your scroll view class. Unfortunately scrollable view don't share same interface so there are separate constructors for:

  • ScrollView (most scrollable views inherit from this class) FadingEdgeScrollView.fromScrollView
  • SingleChildScrollView FadingEdgeScrollView.fromSingleChildScrollView
  • PageViewFadingEdgeScrollView.fromPageView
  • AnimatedListFadingEdgeScrollView.fromAnimatedList
  • ListWheelScrollViewFadingEdgeScrollView.fromListWheelScrollView

View passed as child MUST have controller set. If you want this controller to be disposed when FadingEdgeScrollView is disposed you can pass shouldDisposeScrollController flag set as true to widget constructor.

See documentation and example folder for more information

Demo

Click to see on Youtube:
ListView with images demo ListView demo PageView demo SingleChildScrollView demo

About

Flutter library for displaying fading edges on scroll views

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Dart 37.2%Language:C++ 30.3%Language:CMake 26.3%Language:HTML 2.2%Language:C 2.1%Language:Swift 1.7%Language:Kotlin 0.2%Language:Objective-C 0.1%