| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |