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

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

Issue 1204523002: Material light and dark themes for Sky widgets (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: fix analyzer warning properly 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
Index: sky/sdk/lib/widgets/widget.dart
diff --git a/sky/sdk/lib/widgets/widget.dart b/sky/sdk/lib/widgets/widget.dart
index 09dd8b10e8dc1cc6abc4188b7c9a76cb3d88a31f..4c8a022dfa5ad3cb9a8e89650e4bfd029ba95db4 100644
--- a/sky/sdk/lib/widgets/widget.dart
+++ b/sky/sdk/lib/widgets/widget.dart
@@ -223,7 +223,7 @@ class ParentDataNode extends TagNode {
abstract class _Heir implements Widget {
Map<Type, Inherited> _traits;
- Inherited inheritedOfType(Type type) => _traits[type];
+ Inherited inheritedOfType(Type type) => _traits == null ? null : _traits[type];
static _Heir _getHeirAncestor(Widget widget) {
Widget ancestor = widget;

Powered by Google App Engine
This is Rietveld 408576698