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(

View File

@@ -53,7 +53,7 @@ void main() {
}
test('complex_layout_scroll_perf', () async {
await testScrollPerf('complex-scroll', 'complex_layout_scroll_perf');
await testScrollPerf('complex-scroll-bad', 'complex_layout_scroll_perf');
}, timeout: Timeout.none);
});
}