Commit 8a0caf8e authored by Eric Seidel's avatar Eric Seidel

Start making input work

Does not work yet.

R=ianh@google.com

Review URL: https://codereview.chromium.org/1163973005
parent b76af41f
...@@ -8,9 +8,9 @@ import 'package:sky/framework/components2/drawer.dart'; ...@@ -8,9 +8,9 @@ import 'package:sky/framework/components2/drawer.dart';
// import 'package:sky/framework/components2/floating_action_button.dart'; // import 'package:sky/framework/components2/floating_action_button.dart';
// import 'package:sky/framework/components2/icon.dart'; // import 'package:sky/framework/components2/icon.dart';
import 'package:sky/framework/components2/icon_button.dart'; import 'package:sky/framework/components2/icon_button.dart';
// import 'package:sky/framework/components2/input.dart';
import 'package:sky/framework/components2/menu_divider.dart'; import 'package:sky/framework/components2/menu_divider.dart';
import 'package:sky/framework/components2/menu_item.dart'; import 'package:sky/framework/components2/menu_item.dart';
import 'package:sky/framework/components2/input.dart';
// import 'package:sky/framework/components2/modal_overlay.dart'; // import 'package:sky/framework/components2/modal_overlay.dart';
// import 'package:sky/framework/components2/popup_menu.dart'; // import 'package:sky/framework/components2/popup_menu.dart';
// import 'package:sky/framework/components2/radio.dart'; // import 'package:sky/framework/components2/radio.dart';
...@@ -30,9 +30,6 @@ enum StockMode { optimistic, pessimistic } ...@@ -30,9 +30,6 @@ enum StockMode { optimistic, pessimistic }
class StocksApp extends App { class StocksApp extends App {
// static final Style _searchBarStyle = new Style('''
// background-color: ${Grey[50]};''');
// static final Style _titleStyle = new Style(''' // static final Style _titleStyle = new Style('''
// ${typography.white.title};'''); // ${typography.white.title};''');
...@@ -179,16 +176,16 @@ class StocksApp extends App { ...@@ -179,16 +176,16 @@ class StocksApp extends App {
// TODO(abarth): Should we factor this into a SearchBar in the framework? // TODO(abarth): Should we factor this into a SearchBar in the framework?
UINode buildSearchBar() { UINode buildSearchBar() {
// return new StyleNode( return new ToolBar(
// new ToolBar( left: new IconButton(
// left: new IconButton( icon: 'navigation/arrow_back_grey600',
// icon: 'navigation/arrow_back_grey600', onGestureTap: _handleSearchEnd),
// onGestureTap: _handleSearchEnd), center: new Input(
// center: new Input( focused: true,
// focused: true, placeholder: 'Search stocks',
// placeholder: 'Search stocks', onChanged: _handleSearchQueryChanged),
// onChanged: _handleSearchQueryChanged)), backgroundColor: colors.Grey[50]
// _searchBarStyle); );
} }
void addMenuToOverlays(List<UINode> overlays) { void addMenuToOverlays(List<UINode> overlays) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment