An open API service indexing awesome lists of open source software.

https://github.com/asif-faizal/pull-to-refresh-rive

This Flutter project demonstrates a custom pull-to-refresh animation using Rive and its state machines
https://github.com/asif-faizal/pull-to-refresh-rive

animation rive state-machines

Last synced: 7 months ago
JSON representation

This Flutter project demonstrates a custom pull-to-refresh animation using Rive and its state machines

Awesome Lists containing this project

README

          

# Custom Pull-to-Refresh Animation with [Rive](https://rive.app/) in Flutter

https://github.com/user-attachments/assets/190afde9-f818-448a-b11a-8465376b1ff3

This Flutter project demonstrates a custom pull-to-refresh animation using Rive and its state machines to reflect different states during the pull-to-refresh process. The project integrates Rive's powerful animation capabilities to create a smooth and visually appealing refresh interaction.

## Features

Custom Pull-to-Refresh: The pull-to-refresh interaction is animated with a Rive animation.
State Machines: Rive state machines are used to reflect different states of the pull-to-refresh, such as "idle," "pulling," "refreshing," and "completed."
Smooth Integration: The Rive animation is smoothly integrated with Flutter's RefreshIndicator.

## Installation

### Clone this repository:
```bash
git clone https://github.com/Asif-Faizal/Rive-Pull_refresh.git
```

### Navigate to the project directory:
```bash
cd Pull-to-Refresh-Rive
```

Make sure you have an active Rive account and use their tools to design your pull-to-refresh animation. Export the .riv file and place it in the assets directory.

Add the Rive package to your pubspec.yaml:
```yaml
dependencies:
flutter:
sdk: flutter
rive: ^0.8.0
```

Update your pubspec.yaml to include the assets directory:
```yaml
flutter:
assets:
- assets/animations/pull_to_refresh.riv
```

### Install the dependencies:
```bash
flutter pub get
```