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

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

Issue 1192773004: Teach Sky buttons and dialogs how to use the new Theme system (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: rebase 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
« no previous file with comments | « sky/sdk/lib/widgets/raised_button.dart ('k') | sky/tests/widgets/dialog-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/widgets/theme.dart
diff --git a/sky/sdk/lib/widgets/theme.dart b/sky/sdk/lib/widgets/theme.dart
index f2ef760d7581a2b56efc2ba816d3dbc1ceda4fda..5e8c03067ac9707e96cdd640fb1543bcd9198e39 100644
--- a/sky/sdk/lib/widgets/theme.dart
+++ b/sky/sdk/lib/widgets/theme.dart
@@ -2,10 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-import 'package:sky/theme/theme_data.dart';
+import '../theme/theme_data.dart';
import 'basic.dart';
import 'widget.dart';
+export '../theme/theme_data.dart' show ThemeBrightness;
+
class Theme extends Inherited {
Theme({
@@ -19,7 +21,7 @@ class Theme extends Inherited {
final ThemeData data;
- static ThemeData _kFallbackTheme = new ThemeData.fallback();
+ static final ThemeData _kFallbackTheme = new ThemeData.fallback();
static ThemeData of(Component component) {
Theme theme = component.inheritedOfType(Theme);
« no previous file with comments | « sky/sdk/lib/widgets/raised_button.dart ('k') | sky/tests/widgets/dialog-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698