Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/ankit-slnk/simple_wave

A Flutter plugin for wave animation.
https://github.com/ankit-slnk/simple_wave

animation custompainter flutter package wave

Last synced: about 1 month ago
JSON representation

A Flutter plugin for wave animation.

Awesome Lists containing this project

README

        

# simple_wave

[![pub package](https://img.shields.io/pub/v/simple_wave.svg)](https://pub.dev/packages/simple_wave)

simple_wave - A Flutter plugin for wave animation. | Product Hunt

A Flutter plugin for wave animation.

![simple_wave](simple_wave.png)

![simple_wave](simple_wave.gif)

## Usage

To use this plugin, add `simple_wave` as a [dependency in your pubspec.yaml file](https://flutter.dev/docs/development/packages-and-plugins/using-packages/).

## Example

Import the library.

``` dart
import 'package:simple_wave/simple_wave.dart';
```

Then invoke the `SimpleWaveWidget` method to create simple wave.

``` dart
SimpleWaveWidget()
```

The `SimpleWaveWidget` method also takes optional `waveWidth`, `waveHeight`, `waveColor`, `amplitude`, `waveMilliseconds` arguments.

``` dart
SimpleWaveWidget(
waveWidth: 300, // this changes width of wave
waveHeight: 150, // this changes height of wave
waveColor: Colors.blue, // this changes color of wave
amplitude: 50, // this changes height of wave
waveMilliseconds: 5000, //this changes speed of wave
numberOfWave: 10, //this changes number of waves
)
```

Checkout [this package demo](https://flutter-web-wave.netlify.app/#/) in [Flutter Web](https://flutter.dev/docs/get-started/web).

View [Medium story](https://ankit-solanki.medium.com/simple-wave-642028811e36)