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

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

Issue 996213004: Add placeholder text to the Input component (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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
« no previous file with comments | « no previous file | sky/framework/components/input.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 library stocksapp; 1 library stocksapp;
2 2
3 import '../../framework/fn.dart'; 3 import '../../framework/fn.dart';
4 import '../../framework/components/drawer.dart'; 4 import '../../framework/components/drawer.dart';
5 import '../../framework/components/drawer_header.dart'; 5 import '../../framework/components/drawer_header.dart';
6 import '../../framework/components/fixed_height_scrollable.dart'; 6 import '../../framework/components/fixed_height_scrollable.dart';
7 import '../../framework/components/floating_action_button.dart'; 7 import '../../framework/components/floating_action_button.dart';
8 import '../../framework/components/icon.dart'; 8 import '../../framework/components/icon.dart';
9 import '../../framework/components/input.dart'; 9 import '../../framework/components/input.dart';
10 import '../../framework/components/material.dart'; 10 import '../../framework/components/material.dart';
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 children: [new Text('Settings')] 79 children: [new Text('Settings')]
80 ), 80 ),
81 new MenuItem( 81 new MenuItem(
82 key: 'Help & Feedback', 82 key: 'Help & Feedback',
83 icon: 'action/help', 83 icon: 'action/help',
84 children: [new Text('Help & Feedback')] 84 children: [new Text('Help & Feedback')]
85 ) 85 )
86 ] 86 ]
87 ); 87 );
88 88
89 Node title = _isSearching ? 89 Node title = _isSearching
90 new Input(focused: true) : new Text('I am a stocks app'); 90 ? new Input(focused: true, placeholder: 'Search stocks')
91 : new Text('I am a stocks app');
91 92
92 var toolbar = new Toolbar( 93 var toolbar = new Toolbar(
93 children: [ 94 children: [
94 new Icon(key: 'menu', style: _iconStyle, 95 new Icon(key: 'menu', style: _iconStyle,
95 size: 24, 96 size: 24,
96 type: 'navigation/menu_white') 97 type: 'navigation/menu_white')
97 ..events.listen('click', _drawerAnimation.toggle), 98 ..events.listen('click', _drawerAnimation.toggle),
98 new Container( 99 new Container(
99 style: _titleStyle, 100 style: _titleStyle,
100 children: [title] 101 children: [title]
(...skipping 18 matching lines...) Expand all
119 key: 'Content', 120 key: 'Content',
120 style: _style, 121 style: _style,
121 children: [toolbar, new Stocklist(stocks: _sortedStocks)] 122 children: [toolbar, new Stocklist(stocks: _sortedStocks)]
122 ), 123 ),
123 fab, 124 fab,
124 drawer, 125 drawer,
125 ] 126 ]
126 ); 127 );
127 } 128 }
128 } 129 }
OLDNEW
« no previous file with comments | « no previous file | sky/framework/components/input.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698