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

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

Issue 1231933006: Use AnimatedContainer for card_collection.dart. (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
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 829f9e55ad8ddba46d3df9965d73bc4e0923db21..e68037d4611d14aebc6870ca3607508d949f8a2b 100644
--- a/sky/sdk/lib/animation/animation_performance.dart
+++ b/sky/sdk/lib/animation/animation_performance.dart
@@ -28,6 +28,15 @@ class AnimatedType<T extends dynamic> extends AnimatedVariable {
}
}
+class AnimatedList extends AnimatedVariable {
+ List<AnimatedVariable> variables;
+ AnimatedList(this.variables);
+ void setFraction(double t) {
+ for (AnimatedVariable variable in variables)
+ variable.setFraction(t);
+ }
+}
+
// This class manages a "performance" - a collection of values that change
// based on a timeline. For example, a performance may handle an animation
// of a menu opening by sliding and fading in (changing Y value and opacity)

Powered by Google App Engine
This is Rietveld 408576698