| OLD | NEW |
| 1 library stocksapp; | 1 library stocksapp; |
| 2 | 2 |
| 3 import '../../framework/fn.dart'; | 3 import '../../framework/fn.dart'; |
| 4 import '../../framework/animation/scroll_behavior.dart'; | 4 import '../../framework/animation/scroll_behavior.dart'; |
| 5 import '../../framework/components/drawer.dart'; | 5 import '../../framework/components/drawer.dart'; |
| 6 import '../../framework/components/drawer_header.dart'; | 6 import '../../framework/components/drawer_header.dart'; |
| 7 import '../../framework/components/fixed_height_scrollable.dart'; | 7 import '../../framework/components/fixed_height_scrollable.dart'; |
| 8 import '../../framework/components/floating_action_button.dart'; | 8 import '../../framework/components/floating_action_button.dart'; |
| 9 import '../../framework/components/icon.dart'; | 9 import '../../framework/components/icon.dart'; |
| 10 import '../../framework/components/input.dart'; | 10 import '../../framework/components/input.dart'; |
| 11 import '../../framework/components/material.dart'; | 11 import '../../framework/components/material.dart'; |
| 12 import '../../framework/components/menu_divider.dart'; | 12 import '../../framework/components/menu_divider.dart'; |
| 13 import '../../framework/components/menu_item.dart'; | 13 import '../../framework/components/menu_item.dart'; |
| 14 import '../../framework/components/toolbar.dart'; | 14 import '../../framework/components/action_bar.dart'; |
| 15 import '../data/stocks.dart'; | 15 import '../data/stocks.dart'; |
| 16 import 'dart:math'; | 16 import 'dart:math'; |
| 17 | 17 |
| 18 part 'stockarrow.dart'; | 18 part 'stockarrow.dart'; |
| 19 part 'stocklist.dart'; | 19 part 'stocklist.dart'; |
| 20 part 'stockrow.dart'; | 20 part 'stockrow.dart'; |
| 21 | 21 |
| 22 class StocksApp extends App { | 22 class StocksApp extends App { |
| 23 | 23 |
| 24 DrawerAnimation _drawerAnimation = new DrawerAnimation(); | 24 DrawerAnimation _drawerAnimation = new DrawerAnimation(); |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 ); | 96 ); |
| 97 | 97 |
| 98 Node title; | 98 Node title; |
| 99 if (_isSearching) { | 99 if (_isSearching) { |
| 100 title = new Input(focused: true, placeholder: 'Search stocks', | 100 title = new Input(focused: true, placeholder: 'Search stocks', |
| 101 onChanged: _handleSearchQueryChanged); | 101 onChanged: _handleSearchQueryChanged); |
| 102 } else { | 102 } else { |
| 103 title = new Text('I am a stocks app'); | 103 title = new Text('I am a stocks app'); |
| 104 } | 104 } |
| 105 | 105 |
| 106 var toolbar = new Toolbar( | 106 var toolbar = new ActionBar( |
| 107 children: [ | 107 children: [ |
| 108 new Icon(key: 'menu', style: _iconStyle, | 108 new Icon(key: 'menu', style: _iconStyle, |
| 109 size: 24, | 109 size: 24, |
| 110 type: 'navigation/menu_white') | 110 type: 'navigation/menu_white') |
| 111 ..events.listen('click', _drawerAnimation.toggle), | 111 ..events.listen('click', _drawerAnimation.toggle), |
| 112 new Container( | 112 new Container( |
| 113 style: _titleStyle, | 113 style: _titleStyle, |
| 114 children: [title] | 114 children: [title] |
| 115 ), | 115 ), |
| 116 new Icon(key: 'search', style: _iconStyle, | 116 new Icon(key: 'search', style: _iconStyle, |
| (...skipping 18 matching lines...) Expand all Loading... |
| 135 key: 'Content', | 135 key: 'Content', |
| 136 style: _style, | 136 style: _style, |
| 137 children: [toolbar, list] | 137 children: [toolbar, list] |
| 138 ), | 138 ), |
| 139 fab, | 139 fab, |
| 140 drawer, | 140 drawer, |
| 141 ] | 141 ] |
| 142 ); | 142 ); |
| 143 } | 143 } |
| 144 } | 144 } |
| OLD | NEW |