Commit b3783a16 authored by Hans Muller's avatar Hans Muller

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
parents 8b1dd598 f7b36f07
...@@ -25,6 +25,7 @@ class StockSymbolView extends StatelessComponent { ...@@ -25,6 +25,7 @@ class StockSymbolView extends StatelessComponent {
style: Theme.of(context).text.display2 style: Theme.of(context).text.display2
), ),
new Hero( new Hero(
key: new ObjectKey(stock),
tag: StockRowPartKind.arrow, tag: StockRowPartKind.arrow,
turns: 2, turns: 2,
child: new StockArrow(percentChange: stock.percentChange) child: new StockArrow(percentChange: stock.percentChange)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment