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

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

Issue 1163973005: Start making input work (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
« no previous file with comments | « no previous file | sky/sdk/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/examples/stocks2/lib/stock_app.dart
diff --git a/sky/examples/stocks2/lib/stock_app.dart b/sky/examples/stocks2/lib/stock_app.dart
index a365c9e5294607a34cff282daf0f3160038d26fd..708c71eea190fd194b8fe63fc4fdc622c78dd5af 100644
--- a/sky/examples/stocks2/lib/stock_app.dart
+++ b/sky/examples/stocks2/lib/stock_app.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/icon.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_item.dart';
+import 'package:sky/framework/components2/input.dart';
// import 'package:sky/framework/components2/modal_overlay.dart';
// import 'package:sky/framework/components2/popup_menu.dart';
// import 'package:sky/framework/components2/radio.dart';
@@ -30,9 +30,6 @@ enum StockMode { optimistic, pessimistic }
class StocksApp extends App {
- // static final Style _searchBarStyle = new Style('''
- // background-color: ${Grey[50]};''');
-
// static final Style _titleStyle = new Style('''
// ${typography.white.title};''');
@@ -179,16 +176,16 @@ class StocksApp extends App {
// TODO(abarth): Should we factor this into a SearchBar in the framework?
UINode buildSearchBar() {
- // return new StyleNode(
- // new ToolBar(
- // left: new IconButton(
- // icon: 'navigation/arrow_back_grey600',
- // onGestureTap: _handleSearchEnd),
- // center: new Input(
- // focused: true,
- // placeholder: 'Search stocks',
- // onChanged: _handleSearchQueryChanged)),
- // _searchBarStyle);
+ return new ToolBar(
+ left: new IconButton(
+ icon: 'navigation/arrow_back_grey600',
+ onGestureTap: _handleSearchEnd),
+ center: new Input(
+ focused: true,
+ placeholder: 'Search stocks',
+ onChanged: _handleSearchQueryChanged),
+ backgroundColor: colors.Grey[50]
+ );
}
void addMenuToOverlays(List<UINode> overlays) {
« no previous file with comments | « no previous file | sky/sdk/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698