v1.2.6flutter_scroll_shadow
ScrollShadow 為可滾動的子組件添加陰影。支援 ScrollController 和垂直或水平方向。
41喜歡 3萬近 30 天下載160Pub 分數
AndroidiOSWebmacOSWindowsLinux
用於在滾動組件上添加陰影的 Flutter 組件
以下為英文專案原文快照,最新內容請造訪 GitHub。
ScrollShadow is a widget for Flutter that adds shadows to a scrollable child.
Supports ScrollController and vertical or horizontal orientation.
![]() |
|---|
| ScrollShadow |
Axis
Make sure to check out the examples on GitHub.
Add the following line to pubspec.yaml:
dependencies:
flutter_scroll_shadow: <last-release>
Complete example available here.
ScrollShadow(
color: Colors.grey,
child: ListView(
children: List.generate(20, (index) => ListTile(title: Text('Element $index'),)),
),
);
color: for the shadows; default: Colors.greysize: The width or height of shadows, depending on Axis; default: 15.0child: Scrollable child contained by the ScrollShadowduration: Milliseconds, as an int, for animation of shadow visibility changes; default: 300fadeInCurve: The animation [Curve] to use for shadow appearance; default: Curves.easeInfadeOutCurve: The animation [Curve] to use for shadow disappearance; default: Curves.easeOutignoreInteraction: Determines if shadow is wrapped inside a [IgnorePointer] widget, so that all touch events with the shadow will be ignored; default: true
![]() |
![]() |
|---|---|
| Vertically-scrolling child | Horizontally-scrolling child |
| Package | Verison | Score | Likes | Test | Coverage |
|---|---|---|---|---|---|
| Package | Verison | Score | Likes | Test | Coverage |
|---|---|---|---|---|---|
依賴清單 4 項
{"sdk":"flutter"}^1.18.0^5.0.0{"sdk":"flutter"}先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗