OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 import 'package:sky/framework/components/popup_menu.dart'; |
| 6 import 'package:sky/framework/fn.dart'; |
| 7 import 'package:sky/framework/theme/typography.dart' as typography; |
| 8 import 'package:sky/framework/theme/view-configuration.dart'; |
| 9 import 'stock_arrow.dart'; |
| 10 import 'stock_data.dart'; |
| 11 |
| 12 class StockMenu extends Component { |
| 13 static final Style _style = new Style(''' |
| 14 position: absolute; |
| 15 right: 8px; |
| 16 top: ${8 + kStatusBarHeight}px;'''); |
| 17 |
| 18 StockMenu({Object key}) : super(key: key); |
| 19 |
| 20 Node build() { |
| 21 return new Container( |
| 22 style: _style, |
| 23 children: [ |
| 24 new PopupMenu( |
| 25 items: [ |
| 26 [new Text('Add stock')], |
| 27 [new Text('Remove stock')], |
| 28 [new Text('Help & feeback')], |
| 29 ], |
| 30 level: 4) |
| 31 ] |
| 32 ); |
| 33 } |
| 34 } |
OLD | NEW |