FLUTTER ECOSYSTEM

mponkin/fading_edge_scrollview

用於在捲動檢視上顯示漸變邊緣的 Flutter 庫

fading_edge_scrollview 專案封面
Stars
47
Forks
30
最近推送(UTC)
2024年9月22日
專案狀態
未封存
Mikhail Ponkin GitHub avatar
GITHUB User

Mikhail Ponkin ↗

Android and Flutter developer

語言DartC++CMakeHTMLSwiftCKotlinObjective-C

此儲存庫發佈的套件

使用的依賴

依賴清單 3 項
  • flutter{"sdk":"flutter"}
  • flutter_test開發依賴{"sdk":"flutter"}
  • flutter_lints開發依賴^3.0.1

原始 README

以下為英文專案原文快照,最新內容請造訪 GitHub。

展開 / 收合專案 README

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
  • PageView FadingEdgeScrollView.fromPageView
  • AnimatedList FadingEdgeScrollView.fromAnimatedList
  • ListWheelScrollView FadingEdgeScrollView.fromListWheelScrollView

View passed as child MUST have controller set.

See documentation and example folder for more information

Breaking change in version 4.0.0

Field shouldDisposeScrollController was removed. I was not realizing how widgets should work when I added it. If you were using it - move scrollController creation and disposal to some StatefulWidget.

Demo

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