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

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

Issue 1228273002: Fix analyzer warning (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: more 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 | « sky/sdk/example/stocks/lib/stock_home.dart ('k') | no next file » | no next file with comments »
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 f4254736b0c2f1ec4a246f80f2455a675a8ad119..cb24a8dd0a81fe1deba064097e92b5f5e3fea8f7 100644
--- a/sky/sdk/lib/widgets/material.dart
+++ b/sky/sdk/lib/widgets/material.dart
@@ -56,8 +56,14 @@ class Material extends AnimatedComponent {
AnimatedColor _getBackgroundColor(MaterialType type, Color color) {
if (color == null) {
switch (type) {
- case MaterialType.canvas: color = Theme.of(this).canvasColor; break;
- case MaterialType.card: color = Theme.of(this).cardColor; break;
+ case MaterialType.canvas:
+ color = Theme.of(this).canvasColor;
+ break;
+ case MaterialType.card:
+ color = Theme.of(this).cardColor;
+ break;
+ default:
+ break;
}
}
return color == null ? null : new AnimatedColor(color);
« no previous file with comments | « sky/sdk/example/stocks/lib/stock_home.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698