Merge pull request #966 from HansMuller/fix-mixed-viewport-example
Update mixed_viewport example to new Key API
This commit is contained in:
commit
805ff3134c
@ -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(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user