mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Merge pull request #966 from HansMuller/fix-mixed-viewport-example
Update mixed_viewport example to new Key API
This commit is contained in:
commit
1ee124fb60
@ -107,7 +107,7 @@ class MixedViewportApp extends App {
|
||||
if (index >= lengths.length)
|
||||
return null;
|
||||
return new GestureDetector(
|
||||
key: new Key.stringify(lengths[index]),
|
||||
key: new ValueKey<double>(lengths[index]),
|
||||
onTap: () => removeBox(index),
|
||||
child: new Container(
|
||||
decoration: new BoxDecoration(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user