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

Side by Side Diff: sky/sdk/lib/widgets/default_text_style.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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 import '../painting/text_style.dart';
6 import 'basic.dart';
7 import 'widget.dart';
8
9 class DefaultTextStyle extends Inherited {
10
11 DefaultTextStyle({
12 String key,
13 this.style,
14 Widget child
15 }) : super(key: key, child: child) {
16 assert(style != null);
17 assert(child != null);
18 }
19
20 final TextStyle style;
21
22 static TextStyle of(Component component) {
23 DefaultTextStyle result = component.inheritedOfType(DefaultTextStyle);
24 return result == null ? null : result.style;
25 }
26 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698