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

Unified Diff: sky/examples/stocks2/lib/stock_menu.dart

Issue 1218593002: Move sky/examples to sky/sdk/lib/example, and code changes to support that change. Fixes T277. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: sky/examples/stocks2/lib/stock_menu.dart
diff --git a/sky/examples/stocks2/lib/stock_menu.dart b/sky/examples/stocks2/lib/stock_menu.dart
deleted file mode 100644
index 3d6450d27a57b35e3571a7f3e98672f2eb2cbfc1..0000000000000000000000000000000000000000
--- a/sky/examples/stocks2/lib/stock_menu.dart
+++ /dev/null
@@ -1,43 +0,0 @@
-// 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 {
-
- StockMenu({
- String key,
- this.controller,
- this.autorefresh: false,
- this.onAutorefreshChanged
- }) : super(key: key);
-
- final PopupMenuController controller;
- final bool autorefresh;
- final ValueChanged onAutorefreshChanged;
-
- Widget build() {
- var checkbox = new Checkbox(
- value: this.autorefresh,
- onChanged: this.onAutorefreshChanged
- );
-
- return new Positioned(
- child: new PopupMenu(
- controller: controller,
- items: [
- new Text('Add stock'),
- new Text('Remove stock'),
- new Flex([new Flexible(child: new Text('Autorefresh')), checkbox]),
- ],
- level: 4
- ),
- right: 8.0,
- top: 8.0 + kStatusBarHeight
- );
- }
-}

Powered by Google App Engine
This is Rietveld 408576698