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

Side by Side Diff: sky/examples/stocks-fn/lib/stock_menu.dart

Issue 1008003007: Add a menu to the stocks app (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Tweak padding Created 5 years, 9 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
(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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698