mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Add placeholder text to the Input component
R=rafaelw@chromium.org Review URL: https://codereview.chromium.org/996213004
This commit is contained in:
parent
c62170006f
commit
bc6fb30f01
@ -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: [
|
||||
|
Loading…
Reference in New Issue
Block a user