Commit 805ff313 authored by Hans Muller's avatar Hans Muller

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

Update mixed_viewport example to new Key API
parents 0b690583 fbe4bb42
...@@ -107,7 +107,7 @@ class MixedViewportApp extends App { ...@@ -107,7 +107,7 @@ class MixedViewportApp extends App {
if (index >= lengths.length) if (index >= lengths.length)
return null; return null;
return new GestureDetector( return new GestureDetector(
key: new Key.stringify(lengths[index]), key: new ValueKey<double>(lengths[index]),
onTap: () => removeBox(index), onTap: () => removeBox(index),
child: new Container( child: new Container(
decoration: new BoxDecoration( decoration: new BoxDecoration(
......
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