• Stars
    star
    1,249
  • Rank 37,617 (Top 0.8 %)
  • Language
    Dart
  • License
    MIT License
  • Created almost 6 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

🔁 A custom refresh indicator for flutter.

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 ☕

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.

More Repositories

1

Animated-Text-Kit

🔔 A flutter package to create cool and beautiful text animations. [Flutter Favorite Package]
Dart
1,664
star
2

IntroViews-Flutter

☀️ A Flutter package for some material design app intro screens with some cool animations.
Dart
664
star
3

Image-Steganography-Library-Android

✔️ Hide a secret message in an image
Java
154
star
4

Daily-Prophet-AR

📰 Augmented Reality implementation of Daily Prophet newspaper from Harry Potter
C#
23
star
5

Github-Actions-Flutter

Test, build, analyze, check code formatting and build APK for the Flutter project using Github Actions.
Dart
19
star
6

Home-Automation

📱 Home Automation System using an Arduino board with Bluetooth being remotely controlled by any Android OS smartphone.
Java
13
star
7

Debug-Thugs

A mobile based product which records the road quality in runtime and processes on algorithms indigenously. App made for HackInOut 2018.
Jupyter Notebook
7
star
8

CSN-361-Assignments

🔥 Assignments of course CSN-361, Computer networks laboratory
HTML
3
star
9

Tensorflow-In-Android

Using tensorflow in android
Java
3
star
10

aagarwal1012.github.io

🌏 My old website
CSS
2
star
11

Claim-It

🌟 Insurance.Claim.Simplified
JavaScript
2
star
12

android-resource-checker

✅ Resource checker for the checker framework.
Java
2
star
13

blog

My old blog, inspired from Jekyll Type-on-Strap theme.
HTML
1
star
14

Maharo-Doctor-Android

Android application for Rajasthan Hackathon 2k18
Java
1
star
15

aagarwal1012

🤗My Github profile Readme.
1
star
16

hello-github-actions

Learning about GitHub actions!
Dockerfile
1
star
17

uKnow

CFD 2k18
Java
1
star
18

AnonyTweet

An android app where anonymity is the priority.
Java
1
star
19

ProgTrack

CSN-501 Mini Project for Group 18
JavaScript
1
star