| OLD | NEW |
| 1 part of stocksapp; | 1 part of stocksapp; |
| 2 | 2 |
| 3 class StockRow extends Material { | 3 class StockRow extends Component { |
| 4 | 4 |
| 5 Stock stock; | 5 Stock stock; |
| 6 | 6 |
| 7 static Style _style = new Style(''' | 7 static Style _style = new Style(''' |
| 8 transform: translateX(0); | 8 transform: translateX(0); |
| 9 display: flex; | 9 display: flex; |
| 10 align-items: center; | 10 align-items: center; |
| 11 border-bottom: 1px solid #F4F4F4; | 11 border-bottom: 1px solid #F4F4F4; |
| 12 padding-top: 16px; | 12 padding-top: 16px; |
| 13 padding-left: 16px; | 13 padding-left: 16px; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 style: _lastSaleStyle, | 55 style: _lastSaleStyle, |
| 56 children: [new Text(lastSale)] | 56 children: [new Text(lastSale)] |
| 57 ), | 57 ), |
| 58 new Container( | 58 new Container( |
| 59 key: 'Change', | 59 key: 'Change', |
| 60 style: _changeStyle, | 60 style: _changeStyle, |
| 61 children: [new Text(changeInPrice)] | 61 children: [new Text(changeInPrice)] |
| 62 ) | 62 ) |
| 63 ]; | 63 ]; |
| 64 | 64 |
| 65 children.add(super.build()); | 65 return new Material( |
| 66 | |
| 67 return new Container( | |
| 68 style: _style, | 66 style: _style, |
| 69 children: children | 67 children: children |
| 70 ); | 68 ); |
| 71 } | 69 } |
| 72 } | 70 } |
| OLD | NEW |