FLUTTER ECOSYSTEM

rickypid/flutter_scroll_shadow

스크롤 위젯에 그림자를 추가하는 Flutter 위젯

flutter_scroll_shadow 프로젝트 이미지
Stars
12
Forks
7
최근 푸시(UTC)
2025. 1. 14.
프로젝트 상태
활성
Riccardo Cucia GitHub avatar
GITHUB User

Riccardo Cucia ↗

A good programmer looks both ways before crossing a one-way street.

insideapp-srlItaly공식 웹사이트 ↗
언어DartSwiftKotlinObjective-C

기술 주제

이 저장소가 배포한 패키지

사용 중인 의존성

의존성 목록 4 개
  • flutter{"sdk":"flutter"}
  • collection개발 의존성^1.18.0
  • flutter_lints개발 의존성^5.0.0
  • flutter_test개발 의존성{"sdk":"flutter"}

원본 README

아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.

README 펼치기 / 접기
flutter_scroll_shadow

Scroll Shadow

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

Features

  • Adds shadows over a scrollable child while not at its max extents
  • Supports vertical and horizontal Axis
  • Customizable animation duration
  • Determine how wide or tall shadows render

 

Usage

Make sure to check out the examples on GitHub.

Installation

Add the following line to pubspec.yaml:

dependencies:
  flutter_scroll_shadow: <last-release>
Basic setup

Complete example available here.

ScrollShadow(
  color: Colors.grey,
  child: ListView(
    children: List.generate(20, (index) => ListTile(title: Text('Element $index'),)),
  ),
);
Properties
  • color: for the shadows; default: Colors.grey
  • size: The width or height of shadows, depending on Axis; default: 15.0
  • child: Scrollable child contained by the ScrollShadow
  • duration: Milliseconds, as an int, for animation of shadow visibility changes; default: 300
  • fadeInCurve: The animation [Curve] to use for shadow appearance; default: Curves.easeIn
  • fadeOutCurve: The animation [Curve] to use for shadow disappearance; default: Curves.easeOut
  • ignoreInteraction: Determines if shadow is wrapped inside a [IgnorePointer] widget, so that all touch events with the shadow will be ignored; default: true

 

Example

Image Image
Vertically-scrolling child Horizontally-scrolling child

📚 My open source projects

Flutter
Package Verison Score Likes Test Coverage
https://img.shields.io/static/v1?label=flutter&message=flutter_expandable_table&color=red??style=for-the-badge&logo=GitHub Pub Package Pub Points Pub Likes
https://img.shields.io/static/v1?label=flutter&message=widget_tree_depth_counter&color=red??style=for-the-badge&logo=GitHub Pub Package Pub Points Pub Likes
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
https://img.shields.io/static/v1?label=flutter&message=flutter_bargraph&color=red??style=for-the-badge&logo=GitHub Pub Package Pub Points Pub Likes
Dart
Package Verison Score Likes Test Coverage
https://img.shields.io/static/v1?label=dart&message=cowsay&color=red??style=for-the-badge&logo=GitHub Pub Package Pub Points Pub Likes Test CI codecov
https://img.shields.io/static/v1?label=dart&message=telegram_link&color=red??style=for-the-badge&logo=GitHub Pub Package Pub Points Pub Likes Test CI codecov