Fix scroll key for bad scroll benchmark (#110440)

This commit is contained in:
Jonah Williams
2022-08-28 11:41:27 -07:00
committed by GitHub
parent 41b50c22b0
commit 0c6d786e3a
2 changed files with 5 additions and 2 deletions

View File

@@ -104,7 +104,10 @@ class ComplexLayoutState extends State<ComplexLayout> {
},
);
if (widget.badScroll) {
body = ListView(children: <Widget>[body]);
body = ListView(
key: const Key('complex-scroll-bad'),
children: <Widget>[body],
);
}
return Scaffold(