@@ -309,7 +309,8 @@ Future<void> _checkSequence(
309
309
..every ((it) => it.isA <_Header >());
310
310
await tester.tapAt (headerInset (extent - 1 ));
311
311
await tester.tapAt (headerInset (extent - (expectedHeaderInsetExtent - 1 )));
312
- check (_TapLogged .takeTapLog ()).isEmpty ();
312
+ check (_TapLogged .takeTapLog ())..length.equals (2 )
313
+ ..every ((it) => it.isA <_Item >());
313
314
}
314
315
315
316
Future <void > jumpAndCheck (double position) async {
@@ -388,7 +389,7 @@ class _Header extends StatelessWidget implements _TapLogged {
388
389
}
389
390
}
390
391
391
- class _Item extends StatelessWidget {
392
+ class _Item extends StatelessWidget implements _TapLogged {
392
393
const _Item (this .index, {required this .height});
393
394
394
395
final int index;
@@ -399,10 +400,17 @@ class _Item extends StatelessWidget {
399
400
return SizedBox (
400
401
height: height,
401
402
width: height,
402
- child: Text ("Item $index " ));
403
+ child: GestureDetector (
404
+ onTap: () => _TapLogged ._tapLog.add (this ),
405
+ child: Text ("Item $index " )));
403
406
}
404
- }
405
407
408
+ @override
409
+ void debugFillProperties (DiagnosticPropertiesBuilder properties) {
410
+ super .debugFillProperties (properties);
411
+ properties.add (IntProperty ('index' , index));
412
+ }
413
+ }
406
414
407
415
/// Sets [DeviceGestureSettings.touchSlop] for the child subtree
408
416
/// to the given value, by inserting a [MediaQuery] .
0 commit comments