| 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/widgets/basic.dart'; | 6 import 'package:sky/widgets/basic.dart'; |
| 7 import 'package:sky/widgets/navigator.dart'; | 7 import 'package:sky/widgets/navigator.dart'; |
| 8 import 'package:sky/widgets/theme.dart'; | 8 import 'package:sky/widgets/theme.dart'; |
| 9 import 'package:sky/widgets/widget.dart'; | 9 import 'package:sky/widgets/widget.dart'; |
| 10 | 10 |
| 11 import 'measurement.dart'; | 11 import 'measurement.dart'; |
| 12 import 'home.dart'; | 12 import 'home.dart'; |
| 13 import 'settings.dart'; | 13 import 'settings.dart'; |
| 14 import 'fitness_types.dart'; | 14 import 'fitness_types.dart'; |
| 15 | 15 |
| 16 class FitnessApp extends App { | 16 class FitnessApp extends App { |
| 17 | 17 |
| 18 NavigationState _navigationState; | 18 NavigationState _navigationState; |
| 19 FitnessApp(); | |
| 20 | 19 |
| 21 void initState() { | 20 void initState() { |
| 22 _navigationState = new NavigationState([ | 21 _navigationState = new NavigationState([ |
| 23 new Route( | 22 new Route( |
| 24 name: '/', | 23 name: '/', |
| 25 builder: (navigator, route) => new HomeFragment(navigator, _userData) | 24 builder: (navigator, route) => new HomeFragment(navigator, _userData) |
| 26 ), | 25 ), |
| 27 new Route( | 26 new Route( |
| 28 name: '/settings', | 27 name: '/settings', |
| 29 builder: (navigator, route) => new SettingsFragment(navigator, backupSet
ting, settingsUpdater) | 28 builder: (navigator, route) => new SettingsFragment(navigator, backupSet
ting, settingsUpdater) |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 accentColor: colors.PinkAccent[200] | 62 accentColor: colors.PinkAccent[200] |
| 64 ), | 63 ), |
| 65 child: new Navigator(_navigationState) | 64 child: new Navigator(_navigationState) |
| 66 ); | 65 ); |
| 67 } | 66 } |
| 68 } | 67 } |
| 69 | 68 |
| 70 void main() { | 69 void main() { |
| 71 runApp(new FitnessApp()); | 70 runApp(new FitnessApp()); |
| 72 } | 71 } |
| OLD | NEW |