Skip to content

Commit 7d3a947

Browse files
committed
minor change
1 parent a8bcf5f commit 7d3a947

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

test/gesture_test.dart

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,8 @@ void main() {
3737
that: isA<TapInfo<int>>()
3838
.having((i) => i.tappedValue, 'tappedValue', next)))).called(1);
3939

40-
// tap on the border
41-
await tester.tapAt(
42-
(tester.getTopLeft(switchFinder) + tester.getBottomLeft(switchFinder)) /
43-
2);
40+
// tap on the border of the switch
41+
await tester.tapAt(tester.getRect(switchFinder).centerLeft);
4442
verify(() => tapFunction(any(
4543
that: isA<TapInfo<int>>()
4644
.having((i) => i.tappedValue, 'tappedValue', null)

0 commit comments

Comments
 (0)