Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
42c1f629
Commit
42c1f629
authored
Mar 16, 2016
by
Adam Barth
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2726 from abarth/implicitly_animated_widget
Rename AnimatedWidgetBase -> ImplicitlyAnimatedWidget
parents
0eea48c8
303837c1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
theme.dart
packages/flutter/lib/src/material/theme.dart
+1
-1
implicit_animations.dart
packages/flutter/lib/src/widgets/implicit_animations.dart
+6
-6
No files found.
packages/flutter/lib/src/material/theme.dart
View file @
42c1f629
...
@@ -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
,
...
...
packages/flutter/lib/src/widgets/implicit_animations.dart
View file @
42c1f629
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment