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

Unified Diff: sky/sdk/lib/widgets/material.dart

Issue 1216923008: Fix test failures from my previous animation patch. (Closed) Base URL: git@github.com:/domokit/mojo.git@master
Patch Set: Created 5 years, 6 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/tests/examples/sector-expected.txt » ('j') | sky/tests/examples/sector-expected.txt » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/widgets/material.dart
diff --git a/sky/sdk/lib/widgets/material.dart b/sky/sdk/lib/widgets/material.dart
index 4120aa8665c434568c53333f43e0a661ce64c41c..24cc98b27c8fc20092bee127af371ee2e3eacb8c 100644
--- a/sky/sdk/lib/widgets/material.dart
+++ b/sky/sdk/lib/widgets/material.dart
@@ -39,7 +39,7 @@ class Material extends AnimatedComponent {
int level: 0,
this.color
}) : super(key: key) {
- this.level = new AnimatedValue(level.toDouble());
+ this.level = new AnimatedValue(level == null ? 0.0 : level.toDouble());
watch(this.level);
}
« no previous file with comments | « no previous file | sky/tests/examples/sector-expected.txt » ('j') | sky/tests/examples/sector-expected.txt » ('J')

Powered by Google App Engine
This is Rietveld 408576698