From d809ae0281bd6a6008362f94ebf67a9c40f18c97 Mon Sep 17 00:00:00 2001 From: keremkabiloglu Date: Mon, 20 May 2024 17:11:00 +0300 Subject: [PATCH] limitedSwipe = true to fix issue #2705 --- .DS_Store | Bin 10244 -> 10244 bytes lib/.DS_Store | Bin 0 -> 8196 bytes .../src/routes/default_transitions.dart | 13 +++++++------ .../src/routes/get_transition_mixin.dart | 4 ++-- 4 files changed, 9 insertions(+), 8 deletions(-) create mode 100644 lib/.DS_Store diff --git a/.DS_Store b/.DS_Store index 26c0a534f0aee82f4aa317b93a0bef4c212b8ee6..0d88dba877b0171fba97004ea21f8e542af10ef9 100644 GIT binary patch delta 694 zcmZn(XbIS0B*3I~YjT2s)MP&aF81B&UoRd1dvtQVfGQGOQl}upFgQ6sw}1f*z!VFE z9z!}qCPPV1Izo;~bx-Hy3jz}CiBDZmgA95vAPHyl3raB=JeaI4sKj`3vY()w?x`>N zk4rxtbp#s94l|7*gQ1imDK|gGB`GIA2`Iw>RW*60V6v`_NCC2rGKOM?WQKf(6oyn} z9Z*%9HH91)nfX#JCSMSio7^SL!*21i5Tt$bd13j;s+v4gM4p*}>A>XOBAP4=>|CXj_lU@dPN)C9-bU8po+wn)G5d?3{K9^EnonH01(N- zpvRETkjYSzla7#Ma;+1cd_h2hy?BFj-qriSfi_KS4R& z1e(SUGmRmGp_CyhH$TNCDJMS(D8m6&HF>6BvTnZRViU;Y$oRVqUTLn1>iLjgk$s#Q=`lV^&^GwbXMn7ms=lf_r`e8%KG zA~GVm`7Ur@{5%0M4l0509@fB@F$pGKfz2<(?3m*iZ%zfrQwc*VFq}$|wFY~|hHD-Mdya(xE{|{&HhE;X bF)%&Y+#=P(#ewX4pnnl2AWKluTQZCQO(x+& diff --git a/lib/.DS_Store b/lib/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..6de465102b6c4df34ad46866ed528315a226207e GIT binary patch literal 8196 zcmeI1zl#$=6vy8rr$i&7m50?9B39!40YW??XeD@vg~e(1LJVfJN6emLwXLoHg8zVp zBG?NS7J^vVsn=TB%7NeaW^Q&SyPM>=!b4|{-4}MgFY}piW`DdrB2w$w)*8_&5w);! zJk!RmqH#ZOrPeSa~&lW->ItyWm1(XF_cb6 zf5dXcj)}RBI-QhGCuK%frb1CNI`Sfslj`Ug_Q8SRK-mGV-A~hi`l#49z50DfDXRI$ zqruunoF>~k_2%bA`Xudkd!w`mUF-a}Y&ZM${@UW4tpn$5KXkbS@1&ha4E6+nn1RnP zmxoH7%l&)Ta@S}J-bGrUQ?5>Jk8=!{`xMjEBUR_#!nGQu%lhR?h`hs^Ez0aKk#W~-`Al|_nvw^%ZlQYiqw)y?SBE8Fh)<>ZvCIoQ;%C^_rUG-yPO|>TFx0w!Bwa6I2sX#p|h4luYoDfr%iba$#dsx z+r*=zAJ3P|a+!Ml7gL- animation, - Animation secondaryAnimation, - Widget child) { + BuildContext context, + Curve? curve, + Alignment? alignment, + Animation animation, + Animation secondaryAnimation, + Widget child, + ) { return SlideTransition( position: Tween( begin: const Offset(-1.0, 0.0), diff --git a/lib/get_navigation/src/routes/get_transition_mixin.dart b/lib/get_navigation/src/routes/get_transition_mixin.dart index bd3e1574a..03e8c5a9b 100644 --- a/lib/get_navigation/src/routes/get_transition_mixin.dart +++ b/lib/get_navigation/src/routes/get_transition_mixin.dart @@ -360,7 +360,7 @@ Cannot read the previousTitle for a route that has not yet been installed''', Animation animation, Animation secondaryAnimation, Widget child, { - bool limitedSwipe = false, + bool limitedSwipe = true, double initialOffset = 0, }) { // Check if the route has an animation that's currently participating @@ -605,7 +605,7 @@ Cannot read the previousTitle for a route that has not yet been installed''', assert(_isPopGestureEnabled(route, canSwipe(route), context)); return _startPopGesture(route); }, - limitedSwipe: true, + limitedSwipe: limitedSwipe, gestureWidth: route.gestureWidth?.call(context) ?? _kBackGestureWidth, initialOffset: initialOffset,