| 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'; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 static Style _style = new Style(''' | 26 static Style _style = new Style(''' |
| 27 display: flex; | 27 display: flex; |
| 28 flex-direction: column; | 28 flex-direction: column; |
| 29 height: -webkit-fill-available; | 29 height: -webkit-fill-available; |
| 30 font-family: 'Roboto Regular', 'Helvetica'; | 30 font-family: 'Roboto Regular', 'Helvetica'; |
| 31 font-size: 16px;''' | 31 font-size: 16px;''' |
| 32 ); | 32 ); |
| 33 | 33 |
| 34 static Style _iconStyle = new Style(''' | 34 static Style _iconStyle = new Style(''' |
| 35 padding: 8px; | 35 padding: 8px;''' |
| 36 margin: 0 4px;''' | |
| 37 ); | 36 ); |
| 38 | 37 |
| 39 static Style _titleStyle = new Style(''' | 38 static Style _titleStyle = new Style(''' |
| 40 flex: 1; | 39 padding-left: 24px; |
| 41 margin: 0 4px;''' | 40 flex: 1;''' |
| 42 ); | 41 ); |
| 43 | 42 |
| 44 List<Stock> _sortedStocks; | 43 List<Stock> _sortedStocks; |
| 45 bool _isSearching = false; | 44 bool _isSearching = false; |
| 46 String _searchQuery; | 45 String _searchQuery; |
| 47 | 46 |
| 48 StocksApp() : super() { | 47 StocksApp() : super() { |
| 49 _sortedStocks = oracle.stocks; | 48 _sortedStocks = oracle.stocks; |
| 50 _sortedStocks.sort((a, b) => a.symbol.compareTo(b.symbol)); | 49 _sortedStocks.sort((a, b) => a.symbol.compareTo(b.symbol)); |
| 51 } | 50 } |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 key: 'Content', | 134 key: 'Content', |
| 136 style: _style, | 135 style: _style, |
| 137 children: [toolbar, list] | 136 children: [toolbar, list] |
| 138 ), | 137 ), |
| 139 fab, | 138 fab, |
| 140 drawer, | 139 drawer, |
| 141 ] | 140 ] |
| 142 ); | 141 ); |
| 143 } | 142 } |
| 144 } | 143 } |
| OLD | NEW |