From e9ad53dcbdb74cc0c53a969083220e617b646270 Mon Sep 17 00:00:00 2001 From: Renan <6718144+renancaraujo@users.noreply.github.com> Date: Mon, 19 Jul 2021 21:00:14 +0100 Subject: [PATCH] Fix(#441) add allowed pointer (#445) * Fix(#441) add allowed pointer * shame on me --- example/pubspec.lock | 10 +++++----- lib/src/core/photo_view_core.dart | 4 ++-- lib/src/core/photo_view_gesture_detector.dart | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/example/pubspec.lock b/example/pubspec.lock index 8ea89fa5..3b0cd11b 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -7,7 +7,7 @@ packages: name: async url: "https://pub.dartlang.org" source: hosted - version: "2.5.0" + version: "2.7.0" boolean_selector: dependency: transitive description: @@ -28,7 +28,7 @@ packages: name: charcode url: "https://pub.dartlang.org" source: hosted - version: "1.2.0" + version: "1.3.1" clock: dependency: transitive description: @@ -80,7 +80,7 @@ packages: name: meta url: "https://pub.dartlang.org" source: hosted - version: "1.3.0" + version: "1.7.0" path: dependency: transitive description: @@ -127,7 +127,7 @@ packages: name: source_span url: "https://pub.dartlang.org" source: hosted - version: "1.8.0" + version: "1.8.1" stack_trace: dependency: transitive description: @@ -162,7 +162,7 @@ packages: name: test_api url: "https://pub.dartlang.org" source: hosted - version: "0.2.19" + version: "0.4.2" typed_data: dependency: transitive description: diff --git a/lib/src/core/photo_view_core.dart b/lib/src/core/photo_view_core.dart index e7a45177..c3e959e5 100644 --- a/lib/src/core/photo_view_core.dart +++ b/lib/src/core/photo_view_core.dart @@ -42,7 +42,7 @@ class PhotoViewCore extends StatefulWidget { required this.filterQuality, required this.disableGestures, required this.enablePanAlways, - }) : customChild = null, + }) : customChild = null, super(key: key); const PhotoViewCore.customChild({ @@ -64,7 +64,7 @@ class PhotoViewCore extends StatefulWidget { required this.filterQuality, required this.disableGestures, required this.enablePanAlways, - }) : imageProvider = null, + }) : imageProvider = null, gaplessPlayback = false, super(key: key); diff --git a/lib/src/core/photo_view_gesture_detector.dart b/lib/src/core/photo_view_gesture_detector.dart index 7742783d..cc14366d 100644 --- a/lib/src/core/photo_view_gesture_detector.dart +++ b/lib/src/core/photo_view_gesture_detector.dart @@ -98,7 +98,7 @@ class PhotoViewGestureRecognizer extends ScaleGestureRecognizer { bool ready = true; @override - void addAllowedPointer(PointerEvent event) { + void addAllowedPointer(event) { if (ready) { ready = false; _pointerLocations = {};