| OLD | NEW |
| 1 library stocksapp; | 1 library stocksapp; |
| 2 | 2 |
| 3 import '../data/stocks.dart'; | 3 import '../data/stocks.dart'; |
| 4 import 'dart:math'; | 4 import 'dart:math'; |
| 5 import 'package:sky/framework/animation/scroll_behavior.dart'; | 5 import 'package:sky/framework/animation/scroll_behavior.dart'; |
| 6 import 'package:sky/framework/components/action_bar.dart'; | 6 import 'package:sky/framework/components/action_bar.dart'; |
| 7 import 'package:sky/framework/components/drawer.dart'; | 7 import 'package:sky/framework/components/drawer.dart'; |
| 8 import 'package:sky/framework/components/drawer_header.dart'; | 8 import 'package:sky/framework/components/drawer_header.dart'; |
| 9 import 'package:sky/framework/components/fixed_height_scrollable.dart'; | 9 import 'package:sky/framework/components/fixed_height_scrollable.dart'; |
| 10 import 'package:sky/framework/components/floating_action_button.dart'; | 10 import 'package:sky/framework/components/floating_action_button.dart'; |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 onChanged: _handleSearchQueryChanged); | 102 onChanged: _handleSearchQueryChanged); |
| 103 } else { | 103 } else { |
| 104 title = new Text('Stocks'); | 104 title = new Text('Stocks'); |
| 105 } | 105 } |
| 106 | 106 |
| 107 var toolbar = new ActionBar( | 107 var toolbar = new ActionBar( |
| 108 children: [ | 108 children: [ |
| 109 new Icon(key: 'menu', style: _iconStyle, | 109 new Icon(key: 'menu', style: _iconStyle, |
| 110 size: 24, | 110 size: 24, |
| 111 type: 'navigation/menu_white') | 111 type: 'navigation/menu_white') |
| 112 ..events.listen('click', _drawerAnimation.toggle), | 112 ..events.listen('gesturetap', _drawerAnimation.toggle), |
| 113 new Container( | 113 new Container( |
| 114 style: _titleStyle, | 114 style: _titleStyle, |
| 115 children: [title] | 115 children: [title] |
| 116 ), | 116 ), |
| 117 new Icon(key: 'search', style: _iconStyle, | 117 new Icon(key: 'search', style: _iconStyle, |
| 118 size: 24, | 118 size: 24, |
| 119 type: 'action/search_white') | 119 type: 'action/search_white') |
| 120 ..events.listen('click', _handleSearchClick), | 120 ..events.listen('gesturetap', _handleSearchClick), |
| 121 new Icon(key: 'more_white', style: _iconStyle, | 121 new Icon(key: 'more_white', style: _iconStyle, |
| 122 size: 24, | 122 size: 24, |
| 123 type: 'navigation/more_vert_white') | 123 type: 'navigation/more_vert_white') |
| 124 ] | 124 ] |
| 125 ); | 125 ); |
| 126 | 126 |
| 127 var list = new Stocklist(stocks: _sortedStocks, query: _searchQuery); | 127 var list = new Stocklist(stocks: _sortedStocks, query: _searchQuery); |
| 128 | 128 |
| 129 var fab = new FloatingActionButton(content: new Icon( | 129 var fab = new FloatingActionButton(content: new Icon( |
| 130 type: 'content/add_white', size: 24), level: 3); | 130 type: 'content/add_white', size: 24), level: 3); |
| 131 | 131 |
| 132 return new Container( | 132 return new Container( |
| 133 key: 'StocksApp', | 133 key: 'StocksApp', |
| 134 children: [ | 134 children: [ |
| 135 new Container( | 135 new Container( |
| 136 key: 'Content', | 136 key: 'Content', |
| 137 style: _style, | 137 style: _style, |
| 138 children: [toolbar, list] | 138 children: [toolbar, list] |
| 139 ), | 139 ), |
| 140 fab, | 140 fab, |
| 141 drawer, | 141 drawer, |
| 142 ] | 142 ] |
| 143 ); | 143 ); |
| 144 } | 144 } |
| 145 } | 145 } |
| OLD | NEW |