mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-08-04 17:50:13 +08:00
Compare commits
4 Commits
859f14423e
...
0c308a7001
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0c308a7001 | ||
|
|
cd82668435 | ||
|
|
e142cb6800 | ||
|
|
200329df4a |
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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 (_) {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user