wave_widget library
Flutter Waves - A library for creating beautiful animated wave effects.
This library provides a comprehensive set of tools for creating animated wave effects in Flutter applications. It includes customizable wave shapes, layered wave rendering, and smooth animations.
Key Features:
- Multiple wave shapes (sine, cosine, square, triangle, etc.)
- Layered wave rendering with different colors and gradients
- Customizable animation timing and wave properties
- Advanced wave types like damped, harmonic, and Gerstner waves
- Composite waves for complex patterns
Basic Usage:
import 'package:wave_widget/wave_widget.dart';
WavesWidget(
size: Size(400, 200),
waveLayers: [
WaveLayer.solid(
duration: 3000,
heightFactor: 0.8,
color: Colors.blue.withOpacity(0.6),
),
],
)
Classes
- CompositeShape
- Composite wave implementation.
- CosineShape
- Cosine wave implementation.
- DeepWaterGerstnerShape
- Deep water Gerstner wave implementation.
- GerstnerShape
- Gerstner wave implementation.
- HarmonicShape
- Harmonic wave implementation.
- MultiDirectionalGerstnerShape
- Multi-directional Gerstner wave implementation.
- NoiseShape
- Noise wave implementation.
- SawtoothShape
- Sawtooth wave implementation.
- ShallowGerstnerShape
- Shallow water Gerstner wave implementation.
- SineShape
- Sine wave implementation.
- SpiralShape
- Spiral wave implementation.
- SquareShape
- Square wave implementation.
- StormGerstnerShape
- Storm Gerstner wave implementation.
- TriangleShape
- Triangle wave implementation.
- WaveGradientLayer
- A wave layer implementation that renders with a gradient fill.
- WaveLayer
- Abstract base class for defining wave layer properties and behavior.
- WaveShape
- Abstract base class for defining wave shape mathematical functions.
- WaveSolidLayer
- A wave layer implementation that renders with a solid color fill.
- WavesWidget
- A Flutter widget that renders animated wave effects.