simple_wave 0.0.4 copy "simple_wave: ^0.0.4" to clipboard
simple_wave: ^0.0.4 copied to clipboard

A Flutter plugin for wave animation.

simple_wave #

pub package

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

A Flutter plugin for wave animation.

simple_wave

simple_wave

Usage #

To use this plugin, add simple_wave as a dependency in your pubspec.yaml file.

Example #

Import the library.

import 'package:simple_wave/simple_wave.dart';

Then invoke the SimpleWaveWidget method to create simple wave.

SimpleWaveWidget(
    waveHeight: MediaQuery.sizeOf(context).height,
    waveWidth: MediaQuery.sizeOf(context).width,
)

The SimpleWaveWidget method takes required waveWidth, waveHeight and optional waveColor, amplitude, waveMilliseconds arguments.

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 in Flutter Web.

View Medium story

4
likes
140
points
22
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin for wave animation.

Repository (GitHub)

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, flutter_web_plugins

More

Packages that depend on simple_wave