From 48bb5b7926452e2b138000c3d06a075273efbd90 Mon Sep 17 00:00:00 2001 From: Ian Hickson Date: Fri, 9 Mar 2018 22:49:19 -0800 Subject: [PATCH] Include opacity in FadeTransition logging (#15073) --- packages/flutter/lib/src/widgets/animated_cross_fade.dart | 6 +++--- packages/flutter/lib/src/widgets/transitions.dart | 6 ++++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/packages/flutter/lib/src/widgets/animated_cross_fade.dart b/packages/flutter/lib/src/widgets/animated_cross_fade.dart index 58bb65d022..539485879d 100644 --- a/packages/flutter/lib/src/widgets/animated_cross_fade.dart +++ b/packages/flutter/lib/src/widgets/animated_cross_fade.dart @@ -247,13 +247,13 @@ class _AnimatedCrossFadeState extends State with TickerProvid Animation _initAnimation(Curve curve, bool inverted) { Animation animation = new CurvedAnimation( parent: _controller, - curve: curve + curve: curve, ); if (inverted) { animation = new Tween( - begin: 1.0, - end: 0.0 + begin: 1.0, + end: 0.0, ).animate(animation); } diff --git a/packages/flutter/lib/src/widgets/transitions.dart b/packages/flutter/lib/src/widgets/transitions.dart index 9d2d4099ae..c41f22a9a2 100644 --- a/packages/flutter/lib/src/widgets/transitions.dart +++ b/packages/flutter/lib/src/widgets/transitions.dart @@ -332,6 +332,12 @@ class FadeTransition extends SingleChildRenderObjectWidget { renderObject ..opacity = opacity; } + + @override + void debugFillProperties(DiagnosticPropertiesBuilder description) { + super.debugFillProperties(description); + description.add(new DiagnosticsProperty>('opacity', opacity)); + } } /// An interpolation between two relative rects.