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

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

Issue 1222823004: Make the menu items in the drawer change colour when tapped, per Material spec. (Closed) Base URL: https://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/widgets/theme.dart
diff --git a/sky/sdk/lib/widgets/theme.dart b/sky/sdk/lib/widgets/theme.dart
index 8f7f4af179ad70bde94d6ca81669c26d646a9fc1..529d76deae53d675ce7ff412d87d618707745407 100644
--- a/sky/sdk/lib/widgets/theme.dart
+++ b/sky/sdk/lib/widgets/theme.dart
@@ -27,4 +27,7 @@ class Theme extends Inherited {
Theme theme = component.inheritedOfType(Theme);
return theme == null ? _kFallbackTheme : theme.data;
}
+
+ bool syncShouldNotify(Theme old) => data != old.data;
+
}

Powered by Google App Engine
This is Rietveld 408576698