Skip to content

thisisyoussef/Liquid-Pull-To-Refresh

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Liquid Pull To Refresh

GitHub license

Liquid Pull To Refresh is a highly customizable Flutter library that adds liquid-inspired Pull-To-Refresh functionality to your apps. It provides a unique and visually engaging way to update content and adds a touch of dynamism.

Table of Contents

Installation

To use the library in your Flutter project, follow the steps below:

  1. Add liquid_pull_to_refresh to your pubspec.yaml dependencies:
dependencies:
  liquid_pull_to_refresh: ^latest_version
  1. Install the package via the command line by running:
$ flutter pub get

Usage

To use the Liquid Pull To Refresh widget, follow the steps below:

  1. Import the liquid_pull_to_refresh.dart file into your project:
import 'package:liquid_pull_to_refresh/liquid_pull_to_refresh.dart';
  1. Wrap your ListView, GridView, CustomScrollView, or any other scrollable widget in the LiquidPullToRefresh:
LiquidPullToRefresh(
  key: _refreshIndicatorKey,
  onRefresh: _handleRefresh,
  child: ListView.builder(
    itemBuilder: (context, index) => ListTile(title: Text("Item $index")),
    itemCount: 10,
  )
);
  1. Create a function that performs the desired action on refresh (e.g., data fetching):
Future<void> _handleRefresh() async {
  // update data and state here
  await Future.delayed(Duration(seconds: 3));
}

For more information and advanced usage, please refer to the example project.

Features and Functionality

  • Unique and visually engaging liquid-based design
  • Highly customizable: colors, opacity, displacement, etc.
  • Integrated with ScrollController for programmatic control
  • Supports various scrollable widgets like ListView, GridView, and CustomScrollView
  • Easy installation and usage
  • Prebuilt example project for quick testing and understanding

Contributing

Contributions are welcomed for this project. Please review the contributing guidelines and code of conduct before making any changes or submitting a pull request. For any questions or issues, please open an issue on GitHub.

License

This project is licensed under the MIT License. Please see the license file for more information.

Contact

If you have any questions or queries related to the project, feel free to reach out to the maintainer:

Additionally, you can open an issue in the repository for any support requests or bug reports.

About

๐Ÿ” A custom refresh indicator for flutter.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dart 86.6%
  • HTML 9.3%
  • Objective-C 1.9%
  • Other 2.2%