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

Side by Side Diff: sky/sdk/example/stocks/lib/main.dart

Issue 1217573003: Fix all the components to pick the right colours from the theme. (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 unified diff | Download patch
« no previous file with comments | « no previous file | sky/sdk/example/widgets/sector.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 import 'package:sky/theme/colors.dart' as colors; 5 import 'package:sky/theme/colors.dart' as colors;
6 import 'package:sky/theme/typography.dart' as typography;
6 import 'package:sky/widgets/basic.dart'; 7 import 'package:sky/widgets/basic.dart';
8 import 'package:sky/widgets/default_text_style.dart';
7 import 'package:sky/widgets/navigator.dart'; 9 import 'package:sky/widgets/navigator.dart';
8 import 'package:sky/widgets/theme.dart'; 10 import 'package:sky/widgets/theme.dart';
9 import 'package:sky/widgets/widget.dart'; 11 import 'package:sky/widgets/widget.dart';
10 12
11 import 'stock_data.dart'; 13 import 'stock_data.dart';
12 import 'stock_home.dart'; 14 import 'stock_home.dart';
13 import 'stock_settings.dart'; 15 import 'stock_settings.dart';
14 import 'stock_types.dart'; 16 import 'stock_types.dart';
15 17
16 class StocksApp extends App { 18 class StocksApp extends App {
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 ); 75 );
74 } else { 76 } else {
75 theme = new ThemeData.dark( 77 theme = new ThemeData.dark(
76 primary: colors.Red, 78 primary: colors.Red,
77 accent: colors.PurpleAccent 79 accent: colors.PurpleAccent
78 ); 80 );
79 } 81 }
80 82
81 return new Theme( 83 return new Theme(
82 data: theme, 84 data: theme,
83 child: new Navigator(_navigationState) 85 child: new DefaultTextStyle(
86 style: typography.error, // if you see this, you've forgotten to corre ctly configure the text style!
87 child: new Navigator(_navigationState)
88 )
84 ); 89 );
85 } 90 }
86 } 91 }
87 92
88 void main() { 93 void main() {
89 runApp(new StocksApp()); 94 runApp(new StocksApp());
90 } 95 }
OLDNEW
« no previous file with comments | « no previous file | sky/sdk/example/widgets/sector.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698