Commit 303837c1 authored by Adam Barth's avatar Adam Barth

Rename AnimatedWidgetBase -> ImplicitlyAnimatedWidget

The previous name was confusingly similar to AnimatedWidget, which is
for explicit animations.
parent 0eea48c8
...@@ -54,7 +54,7 @@ class ThemeDataTween extends Tween<ThemeData> { ...@@ -54,7 +54,7 @@ class ThemeDataTween extends Tween<ThemeData> {
/// Animated version of [Theme] which automatically transitions the colours, /// Animated version of [Theme] which automatically transitions the colours,
/// etc, over a given duration whenever the given theme changes. /// etc, over a given duration whenever the given theme changes.
class AnimatedTheme extends AnimatedWidgetBase { class AnimatedTheme extends ImplicitlyAnimatedWidget {
AnimatedTheme({ AnimatedTheme({
Key key, Key key,
this.data, this.data,
......
...@@ -56,8 +56,8 @@ class Matrix4Tween extends Tween<Matrix4> { ...@@ -56,8 +56,8 @@ class Matrix4Tween extends Tween<Matrix4> {
/// An abstract widget for building widgets that gradually change their /// An abstract widget for building widgets that gradually change their
/// values over a period of time. /// values over a period of time.
abstract class AnimatedWidgetBase extends StatefulWidget { abstract class ImplicitlyAnimatedWidget extends StatefulWidget {
AnimatedWidgetBase({ ImplicitlyAnimatedWidget({
Key key, Key key,
this.curve: Curves.linear, this.curve: Curves.linear,
this.duration this.duration
...@@ -73,7 +73,7 @@ abstract class AnimatedWidgetBase extends StatefulWidget { ...@@ -73,7 +73,7 @@ abstract class AnimatedWidgetBase extends StatefulWidget {
final Duration duration; final Duration duration;
@override @override
AnimatedWidgetBaseState<AnimatedWidgetBase> createState(); AnimatedWidgetBaseState<ImplicitlyAnimatedWidget> createState();
@override @override
void debugFillDescription(List<String> description) { void debugFillDescription(List<String> description) {
...@@ -89,7 +89,7 @@ typedef Tween<T> TweenConstructor<T>(T targetValue); ...@@ -89,7 +89,7 @@ typedef Tween<T> TweenConstructor<T>(T targetValue);
typedef Tween<T> TweenVisitor<T>(Tween<T> tween, T targetValue, TweenConstructor<T> constructor); typedef Tween<T> TweenVisitor<T>(Tween<T> tween, T targetValue, TweenConstructor<T> constructor);
/// A base class for widgets with implicit animations. /// 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; AnimationController _controller;
/// The animation driving this widget's implicit animations. /// The animation driving this widget's implicit animations.
...@@ -191,7 +191,7 @@ abstract class AnimatedWidgetBaseState<T extends AnimatedWidgetBase> extends Sta ...@@ -191,7 +191,7 @@ abstract class AnimatedWidgetBaseState<T extends AnimatedWidgetBase> extends Sta
/// different parameters to [Container]. For more complex animations, you'll /// different parameters to [Container]. For more complex animations, you'll
/// likely want to use a subclass of [Transition] or use an /// likely want to use a subclass of [Transition] or use an
/// [AnimationController] yourself. /// [AnimationController] yourself.
class AnimatedContainer extends AnimatedWidgetBase { class AnimatedContainer extends ImplicitlyAnimatedWidget {
AnimatedContainer({ AnimatedContainer({
Key key, Key key,
this.child, this.child,
...@@ -327,7 +327,7 @@ class _AnimatedContainerState extends AnimatedWidgetBaseState<AnimatedContainer> ...@@ -327,7 +327,7 @@ class _AnimatedContainerState extends AnimatedWidgetBaseState<AnimatedContainer>
/// position over a given duration whenever the given position changes. /// position over a given duration whenever the given position changes.
/// ///
/// Only works if it's the child of a [Stack]. /// Only works if it's the child of a [Stack].
class AnimatedPositioned extends AnimatedWidgetBase { class AnimatedPositioned extends ImplicitlyAnimatedWidget {
AnimatedPositioned({ AnimatedPositioned({
Key key, Key key,
this.child, this.child,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment