mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-05 01:27:49 +08:00
ios bottom sheet patch
related #1906 Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
17
lib/scripts/bottom_sheet_ios_piliplus.patch
Normal file
17
lib/scripts/bottom_sheet_ios_piliplus.patch
Normal file
@@ -0,0 +1,17 @@
|
||||
diff --git a/lib/pages/common/slide/common_slide_page.dart b/lib/pages/common/slide/common_slide_page.dart
|
||||
index 58ba68b7c..e17449ee1 100644
|
||||
--- a/lib/pages/common/slide/common_slide_page.dart
|
||||
+++ b/lib/pages/common/slide/common_slide_page.dart
|
||||
@@ -142,6 +142,12 @@ class SlideDragGestureRecognizer extends HorizontalDragGestureRecognizer {
|
||||
bool isPointerAllowed(PointerEvent event) {
|
||||
return isDxAllowed(event.localPosition.dx) && super.isPointerAllowed(event);
|
||||
}
|
||||
+
|
||||
+ @override
|
||||
+ void addAllowedPointer(PointerDownEvent event) {
|
||||
+ super.addAllowedPointer(event);
|
||||
+ resolve(.accepted);
|
||||
+ }
|
||||
}
|
||||
|
||||
class TabBarDragGestureRecognizer
|
||||
Reference in New Issue
Block a user