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
96276630
Commit
96276630
authored
Oct 09, 2019
by
Ian Hickson
Committed by
Michael Goderbauer
Oct 09, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve documentation around animations. (#42267)
parent
ed482c3e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
animation_controller.dart
packages/flutter/lib/src/animation/animation_controller.dart
+4
-0
spring_simulation.dart
packages/flutter/lib/src/physics/spring_simulation.dart
+2
-2
No files found.
packages/flutter/lib/src/animation/animation_controller.dart
View file @
96276630
...
@@ -673,6 +673,10 @@ class AnimationController extends Animation<double>
...
@@ -673,6 +673,10 @@ class AnimationController extends Animation<double>
/// Drives the animation according to the given simulation.
/// Drives the animation according to the given simulation.
///
///
/// The values from the simulation are clamped to the [lowerBound] and
/// [upperBound]. To avoid this, consider creating the [AnimationController]
/// using the [new AnimationController.unbounded] constructor.
///
/// Returns a [TickerFuture] that completes when the animation is complete.
/// Returns a [TickerFuture] that completes when the animation is complete.
///
///
/// The most recently returned [TickerFuture], if any, is marked as having been
/// The most recently returned [TickerFuture], if any, is marked as having been
...
...
packages/flutter/lib/src/physics/spring_simulation.dart
View file @
96276630
...
@@ -122,8 +122,8 @@ class SpringSimulation extends Simulation {
...
@@ -122,8 +122,8 @@ class SpringSimulation extends Simulation {
String
toString
()
=>
'
$runtimeType
(end:
$_endPosition
,
$type
)'
;
String
toString
()
=>
'
$runtimeType
(end:
$_endPosition
,
$type
)'
;
}
}
/// A
SpringSimulation
where the value of [x] is guaranteed to have exactly the
/// A
[SpringSimulation]
where the value of [x] is guaranteed to have exactly the
/// end value when the simulation
isDone()
.
/// end value when the simulation
[isDone]
.
class
ScrollSpringSimulation
extends
SpringSimulation
{
class
ScrollSpringSimulation
extends
SpringSimulation
{
/// Creates a spring simulation from the provided spring description, start
/// Creates a spring simulation from the provided spring description, start
/// distance, end distance, and initial velocity.
/// distance, end distance, and initial velocity.
...
...
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