| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |