Include opacity in FadeTransition logging (#15073)

This commit is contained in:
Ian Hickson 2018-03-09 22:49:19 -08:00 committed by GitHub
parent 984a24c51b
commit 48bb5b7926
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 3 deletions

View File

@ -247,13 +247,13 @@ class _AnimatedCrossFadeState extends State<AnimatedCrossFade> with TickerProvid
Animation<double> _initAnimation(Curve curve, bool inverted) {
Animation<double> animation = new CurvedAnimation(
parent: _controller,
curve: curve
curve: curve,
);
if (inverted) {
animation = new Tween<double>(
begin: 1.0,
end: 0.0
begin: 1.0,
end: 0.0,
).animate(animation);
}

View File

@ -332,6 +332,12 @@ class FadeTransition extends SingleChildRenderObjectWidget {
renderObject
..opacity = opacity;
}
@override
void debugFillProperties(DiagnosticPropertiesBuilder description) {
super.debugFillProperties(description);
description.add(new DiagnosticsProperty<Animation<double>>('opacity', opacity));
}
}
/// An interpolation between two relative rects.