Skip to content

Commit 42c1f62

Browse files
committed
Merge pull request flutter#2726 from abarth/implicitly_animated_widget
Rename AnimatedWidgetBase -> ImplicitlyAnimatedWidget
2 parents 0eea48c + 303837c commit 42c1f62

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

packages/flutter/lib/src/material/theme.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class ThemeDataTween extends Tween<ThemeData> {
5454

5555
/// Animated version of [Theme] which automatically transitions the colours,
5656
/// etc, over a given duration whenever the given theme changes.
57-
class AnimatedTheme extends AnimatedWidgetBase {
57+
class AnimatedTheme extends ImplicitlyAnimatedWidget {
5858
AnimatedTheme({
5959
Key key,
6060
this.data,

packages/flutter/lib/src/widgets/implicit_animations.dart

+6-6
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ class Matrix4Tween extends Tween<Matrix4> {
5656

5757
/// An abstract widget for building widgets that gradually change their
5858
/// values over a period of time.
59-
abstract class AnimatedWidgetBase extends StatefulWidget {
60-
AnimatedWidgetBase({
59+
abstract class ImplicitlyAnimatedWidget extends StatefulWidget {
60+
ImplicitlyAnimatedWidget({
6161
Key key,
6262
this.curve: Curves.linear,
6363
this.duration
@@ -73,7 +73,7 @@ abstract class AnimatedWidgetBase extends StatefulWidget {
7373
final Duration duration;
7474

7575
@override
76-
AnimatedWidgetBaseState<AnimatedWidgetBase> createState();
76+
AnimatedWidgetBaseState<ImplicitlyAnimatedWidget> createState();
7777

7878
@override
7979
void debugFillDescription(List<String> description) {
@@ -89,7 +89,7 @@ typedef Tween<T> TweenConstructor<T>(T targetValue);
8989
typedef Tween<T> TweenVisitor<T>(Tween<T> tween, T targetValue, TweenConstructor<T> constructor);
9090

9191
/// A base class for widgets with implicit animations.
92-
abstract class AnimatedWidgetBaseState<T extends AnimatedWidgetBase> extends State<T> {
92+
abstract class AnimatedWidgetBaseState<T extends ImplicitlyAnimatedWidget> extends State<T> {
9393
AnimationController _controller;
9494

9595
/// The animation driving this widget's implicit animations.
@@ -191,7 +191,7 @@ abstract class AnimatedWidgetBaseState<T extends AnimatedWidgetBase> extends Sta
191191
/// different parameters to [Container]. For more complex animations, you'll
192192
/// likely want to use a subclass of [Transition] or use an
193193
/// [AnimationController] yourself.
194-
class AnimatedContainer extends AnimatedWidgetBase {
194+
class AnimatedContainer extends ImplicitlyAnimatedWidget {
195195
AnimatedContainer({
196196
Key key,
197197
this.child,
@@ -327,7 +327,7 @@ class _AnimatedContainerState extends AnimatedWidgetBaseState<AnimatedContainer>
327327
/// position over a given duration whenever the given position changes.
328328
///
329329
/// Only works if it's the child of a [Stack].
330-
class AnimatedPositioned extends AnimatedWidgetBase {
330+
class AnimatedPositioned extends ImplicitlyAnimatedWidget {
331331
AnimatedPositioned({
332332
Key key,
333333
this.child,

0 commit comments

Comments
 (0)