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

Unified Diff: sky/sdk/lib/widgets/default_text_style.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
« no previous file with comments | « no previous file | sky/sdk/lib/widgets/theme.dart » ('j') | sky/sdk/lib/widgets/widget.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/widgets/default_text_style.dart
diff --git a/sky/sdk/lib/widgets/default_text_style.dart b/sky/sdk/lib/widgets/default_text_style.dart
index a8cc5f0d14a2b43657bba8b01719493b0d3cebf0..ea64c22daedb596305bfd315304509792fd2f763 100644
--- a/sky/sdk/lib/widgets/default_text_style.dart
+++ b/sky/sdk/lib/widgets/default_text_style.dart
@@ -23,4 +23,7 @@ class DefaultTextStyle extends Inherited {
DefaultTextStyle result = component.inheritedOfType(DefaultTextStyle);
return result == null ? null : result.style;
}
+
+ bool syncShouldNotify(DefaultTextStyle old) => style != old.style;
+
}
« no previous file with comments | « no previous file | sky/sdk/lib/widgets/theme.dart » ('j') | sky/sdk/lib/widgets/widget.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698