패키지, 저장소 및 앱 카테고리 검색

liquid_pull_to_refresh 표지
패키지 상세v3.0.1

liquid_pull_to_refresh

Flutter용 아름답고 사용자 정의 가능한 새로 고침 인디케이터로, 멋진 애니메이션과 전환 효과를 제공합니다.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
2.6만
좋아요
826
Pub 점수
150

패키지 설치

flutter pub add liquid_pull_to_refresh

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

LiquidPullToRefresh는 부드러운 애니메이션과 유연한 전환 효과를 통해 표준 하단으로 당기기 리프레시 기능을 향상시키는 시각적으로 매력적인 Flutter 패키지입니다. 사용자 제스처에 따라 동적으로 반응하는 현대적이고 액체 같은 리프레시 인디케이터를 제공하여 모든 플랫폼에서 몰입감 있는 사용자 경험을 제공합니다. 최소한의 설정으로 정교하고 상호작용 가능한 리프레시 메커니즘을 원하는 앱에 이상적입니다. 이 패키지는 Android, iOS, Web, macOS, Windows 및 Linux를 지원하여 매우 유연합니다. 사용자 정의 가능한 디자인은 개발자가 앱의 미적 스타일에 맞게 외관과 행동을 조정할 수 있게 해줍니다.

사용 사례

  • 애니메이션 리프레시 인디케이터로 목록 보기 향상
  • 모바일 및 웹 앱에서 몰입형 사용자 경험 만들기
  • 데이터 로딩 상태에 동적 피드백 추가하기
  • 콘텐츠가 풍부한 애플리케이션에서 UI 정교함 개선
  • 시각적인 화려함을 갖춘 제스처 기반 상호작용 구현

주요 기능

  • 부드러운 액체 같은 애니메이션 효과
  • 사용자 정의 가능한 새로 고침 표시기 모양
  • 크로스 플랫폼 호환성
  • ListView 및 기타 스크롤 가능한 위젯과의 간편한 통합
  • 끌어올리기 새로 고침과 수동 새로 고침 트리거를 모두 지원합니다
  • 사용자 정의 가능한 애니메이션 지속 시간 및 이징

적합한 대상

  • 현대적인 UI 향상을 원하는 개발자
  • 자주 데이터가 업데이트되는 앱
  • 디자인 중심의 플러터 프로젝트
  • 인터랙티브 목록 또는 피드 인터페이스
  • 사용자 참여와 피드백을 우선시하는 팀

고려 사항

  • 애니메이션으로 인해 저사양 기기에서 성능에 영향을 줄 수 있습니다
  • 최적의 UX를 위해 애니메이션 파라미터를 신중하게 조정해야 합니다
  • 완전히 맞춤형 솔루션과 비교해 사용자 정의 옵션이 제한됨
  • 간단하고 미니멀한 새로 고침 요구 사항에 적합하지 않음
  • 다른 스크롤 물리 또는 사용자 지정 표시기와의 잠재적 충돌

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

Liquid Pull To Refresh

A beautiful and custom refresh indicator for flutter highly inspired from Ramotion Pull Down to Refresh. Try out our live example app.



Table of contents

Installing

1. Depend on it

Add this to your package's pubspec.yaml file:

dependencies:
  liquid_pull_to_refresh: ^3.0.1
2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter packages get
3. Import it

Now in your Dart code, you can use:

import 'package:liquid_pull_to_refresh/liquid_pull_to_refresh.dart';

Usage

For adding this custom refresh indicator in your flutter app, you have to simply wrap ListView or GridView inside LiquidPullToRefresh. Also you have provide the value of onRefresh parameter which is a refresh callback.

Note - LiquidPullToRefresh can only be used with a vertical scroll view.

For example:

LiquidPullToRefresh(
        key: _refreshIndicatorKey,	// key if you want to add
        onRefresh: _handleRefresh,	// refresh callback
        child: ListView(),		// scroll view
      );

If you do not want the opacity transition of child then set showChildOpacityTransition: false. Preview regarding the both form of this widget is follows :-

showChildOpacityTransition: true showChildOpacityTransition: false

Documentation

LiquidPullToRefresh Class
Dart attribute Datatype Description Default Value
child ScrollView The widget below this widget in the tree. @required
onRefresh RefreshCallback A function that's called when the refreshing of page takes place. @required
height double The distance from the child's top or bottom edge to where the box will settle after the spring effect. 100.0
springAnimationDurationInMilliseconds int Duration in milliseconds of springy effect that occurs when we leave dragging after full drag. 1000
borderWidth double Border width of progressing circle in Progressing Indicator. 2.0
showChildOpacityTransition bool Whether to show child opacity transition or not. true
color Color The progress indicator's foreground color. ColorScheme.secondary
backgroundColor Color The progress indicator's background color. ThemeData.canvasColor
animSpeedFactor double Controls the speed of the animation after refresh. Used to fasten the ending animation. 1.0

For help on editing package code, view the flutter documentation.

Bugs or Requests

If you encounter any problems feel free to open an issue. If you feel the library is missing a feature, please raise a ticket on GitHub and I'll look into it. Pull request are also welcome.

See Contributing.md.

Donate

If you found this project helpful or you learned something from the source code and want to thank me, consider buying me a cup of :coffee:

Contributors

Thanks goes to these wonderful people (emoji key):


opannapo

💻

Anthony Taormina

📖

Erzhan

⚠️

Puttipong Wongrak

🐛

Aayush Malhotra

🐛

benja8151

📦 🚧

Remco Schrijver

📦 🚧

This project follows the all-contributors specification. Contributions of any kind welcome! See Contributing.md.

License

Liquid-Pull-To-Refresh is licensed under MIT license. View license.

카테고리

소스 저장소

이 패키지를 사용하는 프로젝트