mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-19 08:50:07 +08:00
@@ -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" {
|
||||
|
||||
13
lib/scripts/scale_gesture.patch
Normal file
13
lib/scripts/scale_gesture.patch
Normal 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}
|
||||
Reference in New Issue
Block a user