From 9398450cbd67b29fcbdd7273ca45ff6ab880be10 Mon Sep 17 00:00:00 2001 From: Eric Seidel Date: Tue, 14 Apr 2015 14:47:21 -0700 Subject: [PATCH] Remove Widgets Demo, it's broken and doesn't provide any value over Stocks App R=ianh@google.com, ojan@chromium.org Review URL: https://codereview.chromium.org/1085933002 --- examples/widgets/main.sky | 15 ---------- examples/widgets/widgets_app.dart | 47 ------------------------------- 2 files changed, 62 deletions(-) delete mode 100644 examples/widgets/main.sky delete mode 100644 examples/widgets/widgets_app.dart diff --git a/examples/widgets/main.sky b/examples/widgets/main.sky deleted file mode 100644 index 506b0ff8375..00000000000 --- a/examples/widgets/main.sky +++ /dev/null @@ -1,15 +0,0 @@ -#!mojo mojo:sky_viewer - - - - - diff --git a/examples/widgets/widgets_app.dart b/examples/widgets/widgets_app.dart deleted file mode 100644 index 33d39caaaf8..00000000000 --- a/examples/widgets/widgets_app.dart +++ /dev/null @@ -1,47 +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/framework/fn.dart'; -import 'package:sky/framework/components/button.dart'; -import 'package:sky/framework/components/input.dart'; -import 'package:sky/framework/components/popup_menu.dart'; - -class WidgetsApp extends App { - static final Style _menuStyle = new Style(''' - position: absolute; - top: 200px; - left: 200px;'''); - - PopupMenuController controller; - - UINode build() { - return new Container( - children: [ - new Button(key: 'Go', content: new Text('Go'), level: 1), - new Button(key: 'Back', content: new Text('Back'), level: 3), - new Input() - - // PopupMenu requires a PopupMenuController and should be wired up - // to a button to create the controller only when the menu is open, etc. - // new Container( - // style: _menuStyle, - // children: [ - // new PopupMenu( - // controller: controller, - // items: [ - // [new Text('People & options')], - // [new Text('New group conversation')], - // [new Text('Turn history off')], - // [new Text('Archive')], - // [new Text('Delete')], - // [new Text('Un-merge SMS')], - // [new Text('Help & feeback')], - // ], - // level: 4), - // ] - // ) - // ] - ); - } -}