Merge pull request #2726 from abarth/implicitly_animated_widget

Rename AnimatedWidgetBase -> ImplicitlyAnimatedWidget
This commit is contained in:
Adam Barth 2016-03-15 19:41:39 -07:00
commit 42c1f62928
2 changed files with 7 additions and 7 deletions

View File

@ -54,7 +54,7 @@ class ThemeDataTween extends Tween<ThemeData> {
/// Animated version of [Theme] which automatically transitions the colours,
/// etc, over a given duration whenever the given theme changes.
class AnimatedTheme extends AnimatedWidgetBase {
class AnimatedTheme extends ImplicitlyAnimatedWidget {
AnimatedTheme({
Key key,
this.data,

View File

@ -56,8 +56,8 @@ class Matrix4Tween extends Tween<Matrix4> {
/// An abstract widget for building widgets that gradually change their
/// values over a period of time.
abstract class AnimatedWidgetBase extends StatefulWidget {
AnimatedWidgetBase({
abstract class ImplicitlyAnimatedWidget extends StatefulWidget {
ImplicitlyAnimatedWidget({
Key key,
this.curve: Curves.linear,
this.duration
@ -73,7 +73,7 @@ abstract class AnimatedWidgetBase extends StatefulWidget {
final Duration duration;
@override
AnimatedWidgetBaseState<AnimatedWidgetBase> createState();
AnimatedWidgetBaseState<ImplicitlyAnimatedWidget> createState();
@override
void debugFillDescription(List<String> description) {
@ -89,7 +89,7 @@ typedef Tween<T> TweenConstructor<T>(T targetValue);
typedef Tween<T> TweenVisitor<T>(Tween<T> tween, T targetValue, TweenConstructor<T> constructor);
/// A base class for widgets with implicit animations.
abstract class AnimatedWidgetBaseState<T extends AnimatedWidgetBase> extends State<T> {
abstract class AnimatedWidgetBaseState<T extends ImplicitlyAnimatedWidget> extends State<T> {
AnimationController _controller;
/// The animation driving this widget's implicit animations.
@ -191,7 +191,7 @@ abstract class AnimatedWidgetBaseState<T extends AnimatedWidgetBase> extends Sta
/// different parameters to [Container]. For more complex animations, you'll
/// likely want to use a subclass of [Transition] or use an
/// [AnimationController] yourself.
class AnimatedContainer extends AnimatedWidgetBase {
class AnimatedContainer extends ImplicitlyAnimatedWidget {
AnimatedContainer({
Key key,
this.child,
@ -327,7 +327,7 @@ class _AnimatedContainerState extends AnimatedWidgetBaseState<AnimatedContainer>
/// position over a given duration whenever the given position changes.
///
/// Only works if it's the child of a [Stack].
class AnimatedPositioned extends AnimatedWidgetBase {
class AnimatedPositioned extends ImplicitlyAnimatedWidget {
AnimatedPositioned({
Key key,
this.child,