v1.2.6flutter_scroll_shadow
ScrollShadow 为可滚动的子组件添加阴影。支持 ScrollController 和垂直或水平方向。
41喜欢 2万近 30 天下载160Pub 分数
AndroidiOSWebmacOSWindowsLinux
用于在滚动小部件上添加阴影的 Flutter 小部件
{"sdk":"flutter"}^1.18.0^5.0.0{"sdk":"flutter"}以下为英文项目原文快照,最新内容请访问 GitHub。
https://img.shields.io/static/v1?label=flutter&message=flutter_scroll_shadow&color=red??style=for-the-badge&logo=GitHub Pub Package Pub Points Pub Likes
Package Issue Package License
ScrollShadow is a widget for Flutter that adds shadows to a scrollable child.
Supports ScrollController and vertical or horizontal orientation.
| Image |
|---|
| 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
| Image | Image |
|---|---|
| Vertically-scrolling child | Horizontally-scrolling child |