BreathBox constructor

const BreathBox({
  1. Key? key,
  2. required Widget child,
  3. double minScale = 0.6,
  4. double maxScale = 1.6,
  5. double size = 180,
  6. Color glowColor = Colors.lightBlue,
  7. VoidCallback? onScaleUp,
  8. VoidCallback? onScaleDown,
  9. void onBreathing(
    1. double scale
    )?,
})

构造方法

Implementation

const BreathBox({
  super.key,
  required this.child,
  this.minScale = 0.6,
  this.maxScale = 1.6,
  this.size = 180,
  this.glowColor = Colors.lightBlue,
  this.onScaleUp,
  this.onScaleDown,
  this.onBreathing,
});