fix player gesture

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-06-16 11:23:44 +08:00
parent a98a0df0ef
commit 2372951918
3 changed files with 46 additions and 2 deletions

View File

@@ -24,6 +24,8 @@ $ImageCachePatch = "lib/scripts/image_cache.patch"
$ImageAnimPatch = "lib/scripts/image_anim.patch"
$ScaleGesturePatch = "lib/scripts/scale_gesture.patch"
# TODO: remove
# https://github.com/flutter/flutter/issues/90223
$ModalBarrierPatch = "lib/scripts/modal_barrier.patch"
@@ -38,7 +40,7 @@ $picks = @()
$reverts = @()
$patches = @($ModalBarrierPatch, $TextSelectionPatch, $MouseCursorPatch,
$NavigationBarPatch, $PaddingPatch, $ImageCachePatch, $ImageAnimPatch,
$LayoutBuilderPatch)
$LayoutBuilderPatch, $ScaleGesturePatch)
switch ($platform.ToLower()) {
"android" {

View File

@@ -0,0 +1,13 @@
diff --git a/packages/flutter/lib/src/gestures/scale.dart b/packages/flutter/lib/src/gestures/scale.dart
index fe3cdf27a41..7fe56080bc1 100644
--- a/packages/flutter/lib/src/gestures/scale.dart
+++ b/packages/flutter/lib/src/gestures/scale.dart
@@ -398,6 +398,8 @@ class ScaleGestureRecognizer extends OneSequenceGestureRecognizer {
_ScaleState _state = _ScaleState.ready;
+ bool get isReadyState => _state == _ScaleState.ready;
+
Matrix4? _lastTransform;
/// {@template flutter.gestures.scale.trackpadScrollCausesScale}