ButtonAnimationStyle.pulse constructor

ButtonAnimationStyle.pulse({
  1. Duration duration = const Duration(milliseconds: 800),
  2. Curve curve = Curves.easeInOut,
  3. bool enableHapticFeedback = false,
  4. double pulseScale = 1.05,
})

Subtle continuous scale pulse while pressed Best for long-press actions

Implementation

factory ButtonAnimationStyle.pulse({
  Duration duration = const Duration(milliseconds: 800),
  Curve curve = Curves.easeInOut,
  bool enableHapticFeedback = false,
  double pulseScale = 1.05,
}) {
  return ButtonAnimationStyle._(
    type: ButtonAnimationType.pulse,
    duration: duration,
    curve: curve,
    enableHapticFeedback: enableHapticFeedback,
    pulseScale: pulseScale,
  );
}