Skip to content

Commit

Permalink
Reland: Add Crosshair to act.tap
Browse files Browse the repository at this point in the history
  • Loading branch information
passsy committed Nov 8, 2024
1 parent d5a596a commit 7c58d2d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/src/act/act.dart
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,11 @@ class Act {
final binding = TestWidgetsFlutterBinding.instance;

if (timeline.mode != TimelineMode.off) {
final screenshot = timeline.takeScreenshotSync();
final screenshot = timeline.takeScreenshotSync(
annotators: [
CrosshairAnnotator(centerPosition: positionToTap),
],
);
timeline.addEvent(
details: 'Tap ${selector.toStringBreadcrumb()}',
eventType: 'Tap Event',
Expand Down

0 comments on commit 7c58d2d

Please sign in to comment.