All Projects → aagarwal1012 → Liquid Pull To Refresh

aagarwal1012 / Liquid Pull To Refresh

Licence: mit
🔁 A custom refresh indicator for flutter.

Programming Languages

dart
5743 projects

Projects that are alternatives of or similar to Liquid Pull To Refresh

Expr Eval
Mathematical expression evaluator in JavaScript
Stars: ✭ 752 (-2.21%)
Mutual labels:  hacktoberfest
Alpine Chrome
Chrome Headless docker images built upon alpine official image
Stars: ✭ 754 (-1.95%)
Mutual labels:  hacktoberfest
Combinecocoa
Combine publisher bridges for UIKit
Stars: ✭ 757 (-1.56%)
Mutual labels:  hacktoberfest
Actix
Actor framework for Rust.
Stars: ✭ 6,764 (+779.58%)
Mutual labels:  hacktoberfest
Reactiveui
An advanced, composable, functional reactive model-view-viewmodel framework for all .NET platforms that is inspired by functional reactive programming. ReactiveUI allows you to abstract mutable state away from your user interfaces, express the idea around a feature in one readable place and improve the testability of your application.
Stars: ✭ 6,709 (+772.43%)
Mutual labels:  hacktoberfest
Easy Digital Downloads
Sell digital downloads through WordPress
Stars: ✭ 757 (-1.56%)
Mutual labels:  hacktoberfest
Splat
Makes things cross-platform
Stars: ✭ 753 (-2.08%)
Mutual labels:  hacktoberfest
Room Assistant
Presence tracking and more for automation on the room-level
Stars: ✭ 764 (-0.65%)
Mutual labels:  hacktoberfest
Clarity
Clarity is a scalable, accessible, customizable, open source design system built with web components. Works with any JavaScript framework, built for enterprises, and designed to be inclusive.
Stars: ✭ 6,398 (+731.99%)
Mutual labels:  hacktoberfest
Reaktive
Kotlin multi-platform implementation of Reactive Extensions
Stars: ✭ 760 (-1.17%)
Mutual labels:  hacktoberfest
Glow
Render markdown on the CLI, with pizzazz! 💅🏻
Stars: ✭ 7,596 (+887.78%)
Mutual labels:  hacktoberfest
Node Fetch
A light-weight module that brings the Fetch API to Node.js
Stars: ✭ 7,176 (+833.16%)
Mutual labels:  hacktoberfest
Awesome Icons
A curated list of awesome Web Font Icons
Stars: ✭ 758 (-1.43%)
Mutual labels:  hacktoberfest
Migrate
Database migrations. CLI and Golang library.
Stars: ✭ 7,712 (+902.86%)
Mutual labels:  hacktoberfest
Btgym
Scalable, event-driven, deep-learning-friendly backtesting library
Stars: ✭ 765 (-0.52%)
Mutual labels:  hacktoberfest
Stylish Haskell
Haskell code prettifier
Stars: ✭ 754 (-1.95%)
Mutual labels:  hacktoberfest
Obspy
ObsPy: A Python Toolbox for seismology/seismological observatories.
Stars: ✭ 756 (-1.69%)
Mutual labels:  hacktoberfest
Dracula
JavaScript layout and representation of connected graphs.
Stars: ✭ 767 (-0.26%)
Mutual labels:  hacktoberfest
Elide
Elide is a Java library that lets you stand up a GraphQL/JSON-API web service with minimal effort.
Stars: ✭ 766 (-0.39%)
Mutual labels:  hacktoberfest
Symfony 5 Es Cqrs Boilerplate
Symfony 5 DDD ES CQRS backend boilerplate
Stars: ✭ 759 (-1.3%)
Mutual labels:  hacktoberfest

Liquid Pull To Refresh

A beautiful and custom refresh indicator for flutter highly inspired from Ramotion Pull Down to Refresh.



Table of contents

Installing

1. Depend on it

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

dependencies:
  liquid_pull_to_refresh: ^3.0.0

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. ThemeData.accentColor
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

📦 🚧

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].