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
758c221d
Unverified
Commit
758c221d
authored
Feb 26, 2018
by
David Shuckerow
Committed by
GitHub
Feb 26, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Doc improvements for animations (#14892)
* Doc improvements for animations
parent
a0ffe87b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
animations.dart
packages/flutter/lib/src/animation/animations.dart
+14
-6
No files found.
packages/flutter/lib/src/animation/animations.dart
View file @
758c221d
...
...
@@ -545,9 +545,9 @@ class TrainHoppingAnimation extends Animation<double>
///
/// For example, to create an animation that is the sum of two others, subclass
/// this class and define `T get value = first.value + second.value;`
///
/// By default, the [status] of a [CompoundAnimation] is the status of the
/// [next] animation if [next] is moving, and the status of the [first]
///
/// By default, the [status] of a [CompoundAnimation] is the status of the
/// [next] animation if [next] is moving, and the status of the [first]
/// animation otherwise.
abstract
class
CompoundAnimation
<
T
>
extends
Animation
<
T
>
with
AnimationLazyListenerMixin
,
AnimationLocalListenersMixin
,
AnimationLocalStatusListenersMixin
{
...
...
@@ -583,7 +583,7 @@ abstract class CompoundAnimation<T> extends Animation<T>
}
/// Gets the status of this animation based on the [first] and [next] status.
///
///
/// The default is that if the [next] animation is moving, use its status.
/// Otherwise, default to [first].
@override
...
...
@@ -635,9 +635,13 @@ class AnimationMean extends CompoundAnimation<double> {
/// An animation that tracks the maximum of two other animations.
///
/// The [value] of this animation is the maximum of the values of
/// The [value] of this animation is the maximum of the values of
/// [first] and [next].
class
AnimationMax
<
T
extends
num
>
extends
CompoundAnimation
<
T
>
{
/// Creates an [AnimationMax].
///
/// Both arguments must be non-null. Either can be an [AnimationMax] itself
/// to combine multiple animations.
AnimationMax
(
Animation
<
T
>
first
,
Animation
<
T
>
next
):
super
(
first:
first
,
next:
next
);
@override
...
...
@@ -646,9 +650,13 @@ class AnimationMax<T extends num> extends CompoundAnimation<T> {
/// An animation that tracks the minimum of two other animations.
///
/// The [value] of this animation is the maximum of the values of
/// The [value] of this animation is the maximum of the values of
/// [first] and [next].
class
AnimationMin
<
T
extends
num
>
extends
CompoundAnimation
<
T
>
{
/// Creates an [AnimationMin].
///
/// Both arguments must be non-null. Either can be an [AnimationMin] itself
/// to combine multiple animations.
AnimationMin
(
Animation
<
T
>
first
,
Animation
<
T
>
next
):
super
(
first:
first
,
next:
next
);
@override
...
...
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