title: The argument type 'PointerEvent' can't be assigned to the parameter type 'PointerDownEvent'
body: <p>Recently I've updated to flutter 2.5 and the newest androids studio, and tried to compile my flutter project to android device. Android studio throws me the error below. If I write <code>flutter run</code> in a terminal there is no problem compiling to android device.</p>
  <p>Guess this must be related to android studio. I tried downgrade to an earlier android studio version, but the problem persists.</p>
  <p>I'm not sure what plugin this is, it doesn't seem like any I use in my project.</p>
  <p>Edit: If I downgrade flutter from 2.5 to 2.0 my project compiles again. So the problem is within flutter 2.5</p>
  <pre><code>Launching lib/main.dart on Android SDK built for x86 in debug mode...
  Running Gradle task 'assembleDebug'...
  ../plugins/flutter/.pub-cache/hosted/pub.dartlang.org/photo_view-0.11.1/lib/src/core/photo_view_gesture_detector.dart:106:29: Error: The argument type 'PointerEvent' can't be assigned to the parameter type 'PointerDownEvent'.
   - 'PointerEvent' is from 'package:flutter/src/gestures/events.dart' ('../plugins/flutter/packages/flutter/lib/src/gestures/events.dart').
   - 'PointerDownEvent' is from 'package:flutter/src/gestures/events.dart' ('../plugins/flutter/packages/flutter/lib/src/gestures/events.dart').
      super.addAllowedPointer(event);
  </code></pre>