| // Copyright 2015 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| import 'package:sky/widgets/checkbox.dart'; |
| import 'package:sky/widgets/popup_menu.dart'; |
| import 'package:sky/widgets/basic.dart'; |
| import 'package:sky/framework/theme/view_configuration.dart'; |
| class StockMenu extends Component { |
| this.onAutorefreshChanged |
| final PopupMenuController controller; |
| final ValueChanged onAutorefreshChanged; |
| var checkbox = new Checkbox( |
| onChanged: this.onAutorefreshChanged |
| new Text('Remove stock'), |
| new Flex([new Flexible(child: new Text('Autorefresh')), checkbox]), |
| top: 8.0 + kStatusBarHeight |