| 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/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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |