BreathingAnimation constructor

const BreathingAnimation({
  1. bool enabled = true,
  2. Color color = Colors.white,
  3. Duration duration = const Duration(seconds: 2),
  4. double opacityMin = 0.2,
  5. double opacityMax = 0.9,
  6. double gap = 2.0,
  7. double strokeWidth = 3.0,
})

创建呼吸动画配置

Implementation

const BreathingAnimation({
  this.enabled = true,
  this.color = Colors.white,
  this.duration = const Duration(seconds: 2),
  this.opacityMin = 0.2,
  this.opacityMax = 0.9,
  this.gap = 2.0,
  this.strokeWidth = 3.0,
});