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
b106fd0d
Unverified
Commit
b106fd0d
authored
Jun 19, 2019
by
Michael Goderbauer
Committed by
GitHub
Jun 19, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix-up code sample for TweenSequence (#34679)
parent
26021191
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
tween_sequence.dart
packages/flutter/lib/src/animation/tween_sequence.dart
+8
-3
No files found.
packages/flutter/lib/src/animation/tween_sequence.dart
View file @
b106fd0d
...
...
@@ -7,6 +7,9 @@ import 'package:flutter/foundation.dart';
import
'animation.dart'
;
import
'tween.dart'
;
// Examples can assume:
// AnimationController myAnimationController;
/// Enables creating an [Animation] whose value is defined by a sequence of
/// [Tween]s.
///
...
...
@@ -14,9 +17,10 @@ import 'tween.dart';
/// animation's duration. Each tween defines the animation's value during the
/// interval indicated by its weight.
///
/// For example, to define an animation that uses an easing curve to interpolate
/// between 5.0 and 10.0 during the first 40% of the animation, remain at 10.0
/// for the next 20%, and then return to 10.0 for the final 40%:
/// {@tool sample}
/// This example defines an animation that uses an easing curve to interpolate
/// between 5.0 and 10.0 during the first 40% of the animation, remains at 10.0
/// for the next 20%, and then returns to 5.0 for the final 40%.
///
/// ```dart
/// final Animation<double> animation = TweenSequence(
...
...
@@ -38,6 +42,7 @@ import 'tween.dart';
/// ],
/// ).animate(myAnimationController);
/// ```
/// {@end-tool}
class
TweenSequence
<
T
>
extends
Animatable
<
T
>
{
/// Construct a TweenSequence.
///
...
...
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