FlutterTagAnimation.size constructor
const
FlutterTagAnimation.size({
- bool toAnimate = true,
- Duration animationDuration = const Duration(milliseconds: 500),
- bool loopAnimation = false,
- Duration disappearanceFadeAnimationDuration = const Duration(milliseconds: 200),
- Curve curve = Curves.fastOutSlowIn,
- Axis? sizeTransitionAxis = Axis.horizontal,
- double? sizeTransitionAxisAlignment = 1.0,
- Curve colorChangeAnimationCurve = Curves.linear,
- Duration colorChangeAnimationDuration = Duration.zero,
- bool appearanceDisappearanceFadeAnimationEnabled = true,
Implementation
const FlutterTagAnimation.size({
this.toAnimate = true,
this.animationDuration = const Duration(milliseconds: 500),
this.loopAnimation = false,
this.disappearanceFadeAnimationDuration = const Duration(milliseconds: 200),
this.curve = Curves.fastOutSlowIn,
this.sizeTransitionAxis = Axis.horizontal,
this.sizeTransitionAxisAlignment = 1.0,
this.colorChangeAnimationCurve = Curves.linear,
this.colorChangeAnimationDuration = Duration.zero,
this.appearanceDisappearanceFadeAnimationEnabled = true,
}) : animationType = FlutterTagAnimationType.size,
slideTransitionPositionTween = null;