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

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

Issue 1232673003: Delete drawerController and make drawer handle back behavior natively (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: fix settings page of fitness app 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 | « sky/sdk/example/fitness/lib/home.dart ('k') | sky/sdk/example/fitness/lib/settings.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/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
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 }
OLDNEW
« no previous file with comments | « sky/sdk/example/fitness/lib/home.dart ('k') | sky/sdk/example/fitness/lib/settings.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698