Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(125)

Unified Diff: sky/sdk/lib/animation/animation_performance.dart

Issue 1223113004: Polish the menu animation (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | sky/sdk/lib/base/debug.dart » ('j') | sky/sdk/lib/base/debug.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/animation/animation_performance.dart
diff --git a/sky/sdk/lib/animation/animation_performance.dart b/sky/sdk/lib/animation/animation_performance.dart
index 9f13a3553aebcb1429df3a41bf698aa7cc247f43..11c9822d71b44c716c0a772a448fc92af8f8e4fa 100644
--- a/sky/sdk/lib/animation/animation_performance.dart
+++ b/sky/sdk/lib/animation/animation_performance.dart
@@ -54,11 +54,16 @@ class AnimatedType<T extends dynamic> extends AnimatedVariable {
class AnimatedList extends AnimatedVariable {
List<AnimatedVariable> variables;
- AnimatedList(this.variables);
+ Interval interval;
+
+ AnimatedList(this.variables, { this.interval });
+
void setFraction(double t) {
+ double adjustedTime = interval == null ? t : interval.adjustTime(t);
for (AnimatedVariable variable in variables)
- variable.setFraction(t);
+ variable.setFraction(adjustedTime);
}
+
String toString() => 'AnimatedList([$variables])';
}
« no previous file with comments | « no previous file | sky/sdk/lib/base/debug.dart » ('j') | sky/sdk/lib/base/debug.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698