Chromium Code Reviews| 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/rendering/sky_binding.dart'; | 5 import 'package:sky/rendering/sky_binding.dart'; |
| 6 import 'package:sky/theme/colors.dart' as colors; | 6 import 'package:sky/theme/colors.dart' as colors; |
| 7 import 'package:sky/theme/theme_data.dart'; | 7 import 'package:sky/theme/theme_data.dart'; |
| 8 import 'package:sky/widgets/basic.dart'; | 8 import 'package:sky/widgets/basic.dart'; |
| 9 import 'package:sky/widgets/navigator.dart'; | 9 import 'package:sky/widgets/navigator.dart'; |
| 10 import 'package:sky/widgets/theme.dart'; | 10 import 'package:sky/widgets/theme.dart'; |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 79 | 79 |
| 80 return new Theme( | 80 return new Theme( |
| 81 data: theme, | 81 data: theme, |
| 82 child: new Navigator(_navigationState) | 82 child: new Navigator(_navigationState) |
| 83 ); | 83 ); |
| 84 } | 84 } |
| 85 } | 85 } |
| 86 | 86 |
| 87 void main() { | 87 void main() { |
| 88 print("starting stocks app!"); | 88 print("starting stocks app!"); |
| 89 runApp(new StocksApp(), enableProfilingLoop: true); | 89 runApp(new StocksApp(), enableProfilingLoop: false); |
|
abarth-chromium
2015/06/29 22:39:57
Can we delete the named parameter now that we're p
| |
| 90 // set enableProfilingLoop to true to make the app rebuild continually every 2 0ms | 90 // set enableProfilingLoop to true to make the app rebuild continually every 2 0ms |
| 91 SkyBinding.instance.onFrame = () { | 91 SkyBinding.instance.onFrame = () { |
| 92 // uncomment this to print the RenderObject tree every frame: | 92 // uncomment this to print the RenderObject tree every frame: |
| 93 // SkyBinding.instance.debugDumpRenderTree(); | 93 // SkyBinding.instance.debugDumpRenderTree(); |
| 94 }; | 94 }; |
| 95 } | 95 } |
| OLD | NEW |