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

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

Issue 1235443002: Support for icon theming (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: fix analyzer warning 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/stocks/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/widgets/basic.dart'; 5 import 'package:sky/widgets/basic.dart';
6 import 'package:sky/widgets/switch.dart'; 6 import 'package:sky/widgets/switch.dart';
7 import 'package:sky/widgets/icon_button.dart'; 7 import 'package:sky/widgets/icon_button.dart';
8 import 'package:sky/widgets/material.dart'; 8 import 'package:sky/widgets/material.dart';
9 import 'package:sky/widgets/menu_item.dart'; 9 import 'package:sky/widgets/menu_item.dart';
10 import 'package:sky/widgets/navigator.dart'; 10 import 'package:sky/widgets/navigator.dart';
(...skipping 18 matching lines...) Expand all
29 bool showModeDialog = false; 29 bool showModeDialog = false;
30 30
31 void _handleBackupChanged(bool value) { 31 void _handleBackupChanged(bool value) {
32 if (updater != null) 32 if (updater != null)
33 updater(backup: value ? BackupMode.enabled : BackupMode.disabled); 33 updater(backup: value ? BackupMode.enabled : BackupMode.disabled);
34 } 34 }
35 35
36 Widget buildToolBar() { 36 Widget buildToolBar() {
37 return new ToolBar( 37 return new ToolBar(
38 left: new IconButton( 38 left: new IconButton(
39 icon: 'navigation/arrow_back_white', 39 icon: "navigation/arrow_back",
40 onPressed: navigator.pop), 40 onPressed: navigator.pop),
41 center: new Text('Settings') 41 center: new Text('Settings')
42 ); 42 );
43 } 43 }
44 44
45 Widget buildSettingsPane() { 45 Widget buildSettingsPane() {
46 return new Material( 46 return new Material(
47 type: MaterialType.canvas, 47 type: MaterialType.canvas,
48 child: new Container( 48 child: new Container(
49 padding: const EdgeDims.symmetric(vertical: 20.0), 49 padding: const EdgeDims.symmetric(vertical: 20.0),
(...skipping 18 matching lines...) Expand all
68 ); 68 );
69 } 69 }
70 70
71 Widget build() { 71 Widget build() {
72 return new Scaffold( 72 return new Scaffold(
73 toolbar: buildToolBar(), 73 toolbar: buildToolBar(),
74 body: buildSettingsPane() 74 body: buildSettingsPane()
75 ); 75 );
76 } 76 }
77 } 77 }
OLDNEW
« no previous file with comments | « sky/sdk/example/fitness/lib/home.dart ('k') | sky/sdk/example/stocks/lib/main.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698