@@ -109,6 +109,7 @@ class ComplexLayoutState extends State<ComplexLayout> {
|
||||
Expanded(
|
||||
child: ListView.builder(
|
||||
key: const Key('complex-scroll'), // this key is used by the driver test
|
||||
controller: ScrollController(), // So that the scroll offset can be tracked
|
||||
itemBuilder: (BuildContext context, int index) {
|
||||
if (index % 2 == 0)
|
||||
return FancyImageItem(index, key: PageStorageKey<int>(index));
|
||||
|
||||
Reference in New Issue
Block a user