Compare commits

..

4 Commits

Author SHA1 Message Date
dom
0c308a7001 fix text selection patch
Signed-off-by: dom <githubaccount56556@proton.me>
2026-05-16 08:28:41 +08:00
dom
cd82668435 fix #2112
Signed-off-by: dom <githubaccount56556@proton.me>
2026-05-16 08:28:36 +08:00
dom
e142cb6800 add patch link
Signed-off-by: dom <githubaccount56556@proton.me>
2026-05-16 08:28:24 +08:00
dom
200329df4a remove image anim check
Signed-off-by: dom <githubaccount56556@proton.me>
2026-05-16 08:27:58 +08:00
4 changed files with 7 additions and 6 deletions

View File

@@ -390,9 +390,7 @@ class _ImageState extends State<Image> with WidgetsBindingObserver {
void didChangeDependencies() {
_resolveImage();
_isPaused =
!TickerMode.valuesOf(context).enabled ||
(MediaQuery.maybeDisableAnimationsOf(context) ?? false);
_isPaused = !TickerMode.valuesOf(context).enabled;
if (_isPaused && _frameNumber != null) {
_stopListeningToStream(keepStreamAlive: true);

View File

@@ -16,10 +16,13 @@ $BottomSheetAndroidPatch = "lib/scripts/bottom_sheet_android.patch"
$BottomSheetIOSFlutterPatch = "lib/scripts/bottom_sheet_ios_flutter.patch"
$BottomSheetIOSPiliPlusPatch = "lib/scripts/bottom_sheet_ios_piliplus.patch"
# https://github.com/bggRGjQaUbCoE/PiliPlus/issues/1662
$ScrollViewPatch = "lib/scripts/scroll_view.patch"
# https://github.com/bggRGjQaUbCoE/PiliPlus/issues/2106
$TextSelectionPatch = "lib/scripts/text_selection.patch"
# https://github.com/bggRGjQaUbCoE/PiliPlus/issues/1947
$NavigatorPatch = "lib/scripts/navigator.patch"
# https://github.com/bggRGjQaUbCoE/PiliPlus/issues/2107

View File

@@ -1,12 +1,12 @@
diff --git a/packages/flutter/lib/src/gestures/tap_and_drag.dart b/packages/flutter/lib/src/gestures/tap_and_drag.dart
index 2409d19eabd..fac71cdb383 100644
index 2409d19eabd..3d26609d1ce 100644
--- a/packages/flutter/lib/src/gestures/tap_and_drag.dart
+++ b/packages/flutter/lib/src/gestures/tap_and_drag.dart
@@ -1407,6 +1407,9 @@ class TapAndHorizontalDragGestureRecognizer extends BaseTapAndDragGestureRecogni
@override
bool _hasSufficientGlobalDistanceToAccept(PointerDeviceKind pointerDeviceKind) {
+ if (pointerDeviceKind != PointerDeviceKind.mouse) {
+ if (pointerDeviceKind == PointerDeviceKind.touch) {
+ return false;
+ }
return _globalDistanceMoved.abs() > computeHitSlop(pointerDeviceKind, gestureSettings);

View File

@@ -61,7 +61,7 @@ abstract final class AssetUtils {
}
try {
final data = await rootBundle.load(file);
final data = await rootBundle.load('$src/$file');
await targetFile.writeAsBytes(data.buffer.asUint8List());
} catch (_) {}
}