ButtonAnimationStyle.bounce constructor
ButtonAnimationStyle.bounce({})
Scale down on press, spring back on release Best for add to cart, like buttons
Implementation
factory ButtonAnimationStyle.bounce({
Duration duration = const Duration(milliseconds: 150),
Curve curve = Curves.easeOutBack,
bool enableHapticFeedback = true,
double scaleMin = 0.92,
}) {
return ButtonAnimationStyle._(
type: ButtonAnimationType.bounce,
duration: duration,
curve: curve,
enableHapticFeedback: enableHapticFeedback,
scaleMin: scaleMin,
);
}