Unverified Commit 0c6d786e authored by Jonah Williams's avatar Jonah Williams Committed by GitHub

Fix scroll key for bad scroll benchmark (#110440)

parent 41b50c22
......@@ -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(
......
......@@ -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);
});
}
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