mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-09 19:47:57 +08:00
navigator patch
Closes #1947 Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
15
lib/scripts/navigator.patch
Normal file
15
lib/scripts/navigator.patch
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
diff --git a/packages/flutter/lib/src/widgets/navigator.dart b/packages/flutter/lib/src/widgets/navigator.dart
|
||||||
|
index fb7ccc5da2f..54dbc2b6c1d 100644
|
||||||
|
--- a/packages/flutter/lib/src/widgets/navigator.dart
|
||||||
|
+++ b/packages/flutter/lib/src/widgets/navigator.dart
|
||||||
|
@@ -5615,7 +5615,9 @@ class NavigatorState extends State<Navigator> with TickerProviderStateMixin, Res
|
||||||
|
_debugLocked = false;
|
||||||
|
return true;
|
||||||
|
}());
|
||||||
|
- _afterNavigation(entry.route);
|
||||||
|
+ if (entry.currentState == _RouteLifecycle.popping) {
|
||||||
|
+ _afterNavigation(entry.route);
|
||||||
|
+ }
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Calls [pop] repeatedly until the predicate returns true.
|
||||||
@@ -20,6 +20,8 @@ $ScrollViewPatch = "lib/scripts/scroll_view.patch"
|
|||||||
|
|
||||||
$TextSelectionPatch = "lib/scripts/text_selection.patch"
|
$TextSelectionPatch = "lib/scripts/text_selection.patch"
|
||||||
|
|
||||||
|
$NavigatorPatch = "lib/scripts/navigator.patch"
|
||||||
|
|
||||||
# TODO: remove
|
# TODO: remove
|
||||||
# https://github.com/flutter/flutter/issues/90223
|
# https://github.com/flutter/flutter/issues/90223
|
||||||
$ModalBarrierPatch = "lib/scripts/modal_barrier.patch"
|
$ModalBarrierPatch = "lib/scripts/modal_barrier.patch"
|
||||||
@@ -46,10 +48,12 @@ switch ($platform.ToLower()) {
|
|||||||
$reverts += $NewOverScrollIndicator
|
$reverts += $NewOverScrollIndicator
|
||||||
$patches += $BottomSheetAndroidPatch
|
$patches += $BottomSheetAndroidPatch
|
||||||
$patches += $ScrollViewPatch
|
$patches += $ScrollViewPatch
|
||||||
|
$patches += $NavigatorPatch
|
||||||
}
|
}
|
||||||
"ios" {
|
"ios" {
|
||||||
$patches += $ScrollViewPatch
|
$patches += $ScrollViewPatch
|
||||||
$patches += $BottomSheetIOSFlutterPatch
|
$patches += $BottomSheetIOSFlutterPatch
|
||||||
|
$patches += $NavigatorPatch
|
||||||
}
|
}
|
||||||
"linux" {
|
"linux" {
|
||||||
$picks += $ToolTipFix
|
$picks += $ToolTipFix
|
||||||
|
|||||||
Reference in New Issue
Block a user