mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
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:
commit
b3783a1605
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user