AnimationSettings constructor

AnimationSettings({
  1. required AnimationController animationController,
  2. Animation<double>? opacityAnimation,
  3. Animation<double>? scaleAnimation,
  4. Animation<double>? offsetXAnimation,
  5. Animation<double>? offsetYAnimation,
  6. Animation<double>? blurXAnimation,
  7. Animation<double>? blurYAnimation,
  8. Animation<double>? rotationAnimation,
  9. Alignment? scaleAlignment,
  10. Alignment? skewAlignment,
  11. Animation<double>? skewXAnimation,
  12. Animation<double>? skewYAnimation,
})

Implementation

AnimationSettings(
    {required AnimationController animationController,
    this.opacityAnimation,
    this.scaleAnimation,
    this.offsetXAnimation,
    this.offsetYAnimation,
    this.blurXAnimation,
    this.blurYAnimation,
    this.rotationAnimation,
    this.scaleAlignment,
    this.skewAlignment,
    this.skewXAnimation,
    this.skewYAnimation}) {
  opacityAnimation = Tween<double>(begin: 1, end: 1).animate(
      CurvedAnimation(parent: animationController, curve: Curves.linear));
  scaleAnimation = Tween<double>(begin: 1, end: 1).animate(
      CurvedAnimation(parent: animationController, curve: Curves.linear));
  offsetXAnimation = Tween<double>(begin: 0, end: 0).animate(
      CurvedAnimation(parent: animationController, curve: Curves.linear));
  offsetYAnimation = Tween<double>(begin: 0, end: 0).animate(
      CurvedAnimation(parent: animationController, curve: Curves.linear));
  rotationAnimation = Tween<double>(begin: 0, end: 0).animate(
      CurvedAnimation(parent: animationController, curve: Curves.linear));
  blurXAnimation = Tween<double>(begin: 0, end: 0).animate(
      CurvedAnimation(parent: animationController, curve: Curves.linear));
  blurYAnimation = Tween<double>(begin: 0, end: 0).animate(
      CurvedAnimation(parent: animationController, curve: Curves.linear));
  skewXAnimation = Tween<double>(begin: 0, end: 0).animate(
      CurvedAnimation(parent: animationController, curve: Curves.linear));
  skewYAnimation = Tween<double>(begin: 0, end: 0).animate(
      CurvedAnimation(parent: animationController, curve: Curves.linear));
  skewAlignment = Alignment.center;
  scaleAlignment = Alignment.center;
}