Remove ColorTransition

There are no clients anymore. We added it for the Drawer a while ago,
which is a use case that's now better covered by AnimatedModalBarrier,
complete with semantics.
This commit is contained in:
Adam Barth 2016-02-05 20:29:07 -08:00
parent bc3202ff35
commit d44e601a0a

View File

@ -195,30 +195,6 @@ class FadeTransition extends AnimatedComponent {
}
}
/// Animates the background color of a widget.
class ColorTransition extends AnimatedComponent {
ColorTransition({
Key key,
Animation<Color> color,
this.child
}) : color = color, super(key: key, animation: color);
/// The animation that controls the color of the background.
///
/// If the current value of the color animation is c, this widget will paint
/// a rectangular background behind the child widget of color c.
final Animation<Color> color;
final Widget child;
Widget build(BuildContext context) {
return new DecoratedBox(
decoration: new BoxDecoration(backgroundColor: color.value),
child: child
);
}
}
/// An interpolation between two relative rects.
///
/// This class specializes the interpolation of Tween<RelativeRect> to be