GestureAnimator constructor
const
GestureAnimator({
- Key? key,
- Duration duration = const Duration(milliseconds: 150),
- VoidCallback? onTap,
- dynamic onTapDown(
- TapDownDetails details
- dynamic onTapUp(
- TapUpDetails details
- VoidCallback? onLongPress,
- bool triggerOnTapAfterAnimationComplete = false,
- Widget? child,
- double scaleSize = 0.9,
- double xOffset = 0,
- double yOffset = 0,
- double blurX = 0,
- double blurY = 0,
- double opacity = 1,
- double skewX = 0,
- double skewY = 0,
- double rotation = 0,
- int numberOfPlays = 1,
- Curve curve = Curves.linear,
- Future<
void> hapticFeedback()?,
Implementation
const GestureAnimator({
Key? key,
this.duration = const Duration(milliseconds: 150),
this.onTap,
this.onTapDown,
this.onTapUp,
this.onLongPress,
this.triggerOnTapAfterAnimationComplete = false,
this.child,
this.scaleSize = 0.9,
this.xOffset = 0,
this.yOffset = 0,
this.blurX = 0,
this.blurY = 0,
this.opacity = 1,
this.skewX = 0,
this.skewY = 0,
this.rotation = 0,
this.numberOfPlays = 1,
this.curve = Curves.linear,
this.hapticFeedback,
}) : super(key: key);