SizeAnimatedWidget constructor
SizeAnimatedWidget({})
A size animation using 2-* values
duration : the duration of the animation, including intermediate values delay : the delay before the animation starts enabled : determine if the animation is stopped or fired curve : An easing curve, see Curve
values : list of double (between 1.0 and 0.0) used for the animation,
- the first : will be the sizeDisabled value
- intermediate values : intermediate values between sizeDisabled & sizeEnabled
- the last : will be the sizeEnabled value
animationFinished : a callback called when the animation is finished
Implementation
SizeAnimatedWidget({
this.child,
this.delay = const Duration(),
this.curve = Curves.linear,
this.duration = const Duration(seconds: 2),
this.enabled = false,
this.animationFinished,
List<Size> values = const [Size(0, 0), Size(100, 0)],
}) : this._values = values,
assert(values.length > 1);