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

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

Issue 1226113007: Add @override annotation to known overriden methods (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 | « sky/sdk/example/demo_launcher/lib/main.dart ('k') | sky/sdk/example/fitness/lib/main.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/painting/text_style.dart'; 5 import 'package:sky/painting/text_style.dart';
6 import 'package:sky/widgets/basic.dart'; 6 import 'package:sky/widgets/basic.dart';
7 import 'package:sky/widgets/drawer.dart'; 7 import 'package:sky/widgets/drawer.dart';
8 import 'package:sky/widgets/drawer_header.dart'; 8 import 'package:sky/widgets/drawer_header.dart';
9 import 'package:sky/widgets/floating_action_button.dart'; 9 import 'package:sky/widgets/floating_action_button.dart';
10 import 'package:sky/widgets/icon.dart'; 10 import 'package:sky/widgets/icon.dart';
(...skipping 17 matching lines...) Expand all
28 // if (debug) 28 // if (debug)
29 // new Timer(new Duration(seconds: 1), dumpState); 29 // new Timer(new Duration(seconds: 1), dumpState);
30 _drawerController = new DrawerController(_handleDrawerStatusChanged); 30 _drawerController = new DrawerController(_handleDrawerStatusChanged);
31 } 31 }
32 32
33 Navigator navigator; 33 Navigator navigator;
34 List<Measurement> userData; 34 List<Measurement> userData;
35 35
36 FitnessMode _fitnessMode = FitnessMode.measure; 36 FitnessMode _fitnessMode = FitnessMode.measure;
37 37
38 @override
38 void syncFields(HomeFragment source) { 39 void syncFields(HomeFragment source) {
39 navigator = source.navigator; 40 navigator = source.navigator;
40 userData = source.userData; 41 userData = source.userData;
41 } 42 }
42 43
43 bool _isShowingSnackBar = false; 44 bool _isShowingSnackBar = false;
44 bool _isRunning = false; 45 bool _isRunning = false;
45 46
46 DrawerController _drawerController; 47 DrawerController _drawerController;
47 bool _drawerShowing = false; 48 bool _drawerShowing = false;
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 return new FloatingActionButton( 188 return new FloatingActionButton(
188 child: new Icon( 189 child: new Icon(
189 type: _isRunning ? 'av/stop_white' : 'maps/directions_run_white', 190 type: _isRunning ? 'av/stop_white' : 'maps/directions_run_white',
190 size: 24 191 size: 24
191 ), 192 ),
192 onPressed: _isRunning ? _handleRunStopped : _handleRunStarted 193 onPressed: _isRunning ? _handleRunStopped : _handleRunStarted
193 ); 194 );
194 } 195 }
195 } 196 }
196 197
198 @override
197 Widget build() { 199 Widget build() {
198 return new Scaffold( 200 return new Scaffold(
199 toolbar: buildToolBar(), 201 toolbar: buildToolBar(),
200 body: buildBody(), 202 body: buildBody(),
201 snackBar: buildSnackBar(), 203 snackBar: buildSnackBar(),
202 floatingActionButton: buildFloatingActionButton(), 204 floatingActionButton: buildFloatingActionButton(),
203 drawer: _drawerShowing ? buildDrawer() : null 205 drawer: _drawerShowing ? buildDrawer() : null
204 ); 206 );
205 } 207 }
206 } 208 }
OLDNEW
« no previous file with comments | « sky/sdk/example/demo_launcher/lib/main.dart ('k') | sky/sdk/example/fitness/lib/main.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698