WavePainter constructor

const WavePainter({
  1. required double progress,
  2. Key? key,
  3. Widget? child,
  4. double waveHeight = 6.0,
  5. double waveSpeed = 1.5,
  6. Color? waveColor,
  7. int waveCount = 3,
  8. Curve animationCurve = Curves.linear,
  9. double radius = 0.0,
  10. double shrinkHeight = 0.0,
})

WavePainter 波浪背景组件

Implementation

const WavePainter({
  required this.progress,
  super.key,
  this.child,
  this.waveHeight = 6.0,
  this.waveSpeed = 1.5,
  this.waveColor,
  this.waveCount = 3,
  this.animationCurve = Curves.linear,
  this.radius = 0.0,
  this.shrinkHeight = 0.0,
}) : assert(progress >= 0.0 && progress <= 1.0);