Unverified Commit 48bb5b79 authored by Ian Hickson's avatar Ian Hickson Committed by GitHub

Include opacity in FadeTransition logging (#15073)

parent 984a24c5
...@@ -247,13 +247,13 @@ class _AnimatedCrossFadeState extends State<AnimatedCrossFade> with TickerProvid ...@@ -247,13 +247,13 @@ class _AnimatedCrossFadeState extends State<AnimatedCrossFade> with TickerProvid
Animation<double> _initAnimation(Curve curve, bool inverted) { Animation<double> _initAnimation(Curve curve, bool inverted) {
Animation<double> animation = new CurvedAnimation( Animation<double> animation = new CurvedAnimation(
parent: _controller, parent: _controller,
curve: curve curve: curve,
); );
if (inverted) { if (inverted) {
animation = new Tween<double>( animation = new Tween<double>(
begin: 1.0, begin: 1.0,
end: 0.0 end: 0.0,
).animate(animation); ).animate(animation);
} }
......
...@@ -332,6 +332,12 @@ class FadeTransition extends SingleChildRenderObjectWidget { ...@@ -332,6 +332,12 @@ class FadeTransition extends SingleChildRenderObjectWidget {
renderObject renderObject
..opacity = opacity; ..opacity = opacity;
} }
@override
void debugFillProperties(DiagnosticPropertiesBuilder description) {
super.debugFillProperties(description);
description.add(new DiagnosticsProperty<Animation<double>>('opacity', opacity));
}
} }
/// An interpolation between two relative rects. /// An interpolation between two relative rects.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment