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

Side by Side Diff: sky/sdk/example/stocks/lib/stock_settings.dart

Issue 1233703003: add initState, rename animated_container (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: remove print statement 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
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/checkbox.dart'; 6 import 'package:sky/widgets/checkbox.dart';
7 import 'package:sky/widgets/switch.dart'; 7 import 'package:sky/widgets/switch.dart';
8 import 'package:sky/widgets/flat_button.dart'; 8 import 'package:sky/widgets/flat_button.dart';
9 import 'package:sky/widgets/dialog.dart'; 9 import 'package:sky/widgets/dialog.dart';
10 import 'package:sky/widgets/icon_button.dart'; 10 import 'package:sky/widgets/icon_button.dart';
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 if (updater != null) 71 if (updater != null)
72 updater( 72 updater(
73 optimism: optimism, 73 optimism: optimism,
74 backup: backup 74 backup: backup
75 ); 75 );
76 } 76 }
77 77
78 Widget buildToolBar() { 78 Widget buildToolBar() {
79 return new ToolBar( 79 return new ToolBar(
80 left: new IconButton( 80 left: new IconButton(
81 icon: 'navigation/arrow_back_white', 81 icon: 'navigation/arrow_back',
82 onPressed: navigator.pop), 82 onPressed: navigator.pop),
83 center: new Text('Settings') 83 center: new Text('Settings')
84 ); 84 );
85 } 85 }
86 86
87 Widget buildSettingsPane() { 87 Widget buildSettingsPane() {
88 // TODO(ianh): Once we have the gesture API hooked up, fix https://github.co m/domokit/mojo/issues/281 88 // TODO(ianh): Once we have the gesture API hooked up, fix https://github.co m/domokit/mojo/issues/281
89 // (whereby tapping the widgets below causes both the widget and the menu it em to fire their callbacks) 89 // (whereby tapping the widgets below causes both the widget and the menu it em to fire their callbacks)
90 return new Material( 90 return new Material(
91 type: MaterialType.canvas, 91 type: MaterialType.canvas,
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 _handleOptimismChanged(true); 136 _handleOptimismChanged(true);
137 navigator.pop(); 137 navigator.pop();
138 } 138 }
139 ), 139 ),
140 ] 140 ]
141 )); 141 ));
142 } 142 }
143 return new Stack(layers); 143 return new Stack(layers);
144 } 144 }
145 } 145 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698