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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | sky/framework/components/input.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/examples/stocks-fn/stocksapp.dart
diff --git a/sky/examples/stocks-fn/stocksapp.dart b/sky/examples/stocks-fn/stocksapp.dart
index 72f4be7900c25fd77b68424d77bee6405f92e248..16333e06267b2a29d1d4ad335f2820cd5d0c5f45 100644
--- a/sky/examples/stocks-fn/stocksapp.dart
+++ b/sky/examples/stocks-fn/stocksapp.dart
@@ -86,8 +86,9 @@ class StocksApp extends App {
]
);
- Node title = _isSearching ?
- new Input(focused: true) : new Text('I am a stocks app');
+ Node title = _isSearching
+ ? new Input(focused: true, placeholder: 'Search stocks')
+ : new Text('I am a stocks app');
var toolbar = new Toolbar(
children: [
« 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