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.