Merge pull request #383 from HansMuller/more_stocks_bugs

Give the StockSymbolView's Hero a Key

The StockSymbolBottomSheet includes a Hero, as does the StockSymbolPage and the StockRow. When two or more heroes with the same tag are gathered together Heros.of() expects them to have distinguishing non-null keys. Now they do.

Fixes #382
This commit is contained in:
Hans Muller 2015-11-16 12:00:10 -08:00
commit b3783a1605

View File

@ -25,6 +25,7 @@ class StockSymbolView extends StatelessComponent {
style: Theme.of(context).text.display2
),
new Hero(
key: new ObjectKey(stock),
tag: StockRowPartKind.arrow,
turns: 2,
child: new StockArrow(percentChange: stock.percentChange)