Merge pull request #966 from HansMuller/fix-mixed-viewport-example

Update mixed_viewport example to new Key API
This commit is contained in:
Hans Muller 2015-08-31 14:11:04 -07:00
commit 805ff3134c

View File

@ -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(