|
|
|
|
|
|
} |
|
|
|
|
|
|
|
class _AnimatedOpacityState : ImplicitlyAnimatedWidgetState<AnimatedOpacity> { |
|
|
|
FloatTween _opacity; |
|
|
|
NullableFloatTween _opacity; |
|
|
|
this._opacity = (FloatTween) visitor.visit(this, this._opacity, this.widget.opacity, |
|
|
|
(float value) => new FloatTween(begin: value, end: 1.0f)); |
|
|
|
this._opacity = (NullableFloatTween) visitor.visit(this, this._opacity, this.widget.opacity, |
|
|
|
(float? value) => new NullableFloatTween(begin: value)); |
|
|
|
this._opacityAnimation = this.animation.drive(this._opacity); |
|
|
|
float? endValue = this._opacity.end ?? this._opacity.begin ?? null; |
|
|
|
D.assert(endValue != null); |
|
|
|
this._opacityAnimation = this.animation.drive(new FloatTween(begin: this._opacity.begin.Value, end: endValue.Value)); |
|
|
|
} |
|
|
|
|
|
|
|
public override Widget build(BuildContext context) { |
|
|
|