Skip to content

Commit

Permalink
limitedSwipe = true to fix issue jonataslaw#2705
Browse files Browse the repository at this point in the history
  • Loading branch information
keremkabiloglu committed May 20, 2024
1 parent 1f5a882 commit d809ae0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
Binary file modified .DS_Store
Binary file not shown.
Binary file added lib/.DS_Store
Binary file not shown.
13 changes: 7 additions & 6 deletions lib/get_navigation/src/routes/default_transitions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ import 'circular_reveal_clipper.dart';

class LeftToRightFadeTransition {
Widget buildTransitions(
BuildContext context,
Curve? curve,
Alignment? alignment,
Animation<double> animation,
Animation<double> secondaryAnimation,
Widget child) {
BuildContext context,
Curve? curve,
Alignment? alignment,
Animation<double> animation,
Animation<double> secondaryAnimation,
Widget child,
) {
return SlideTransition(
position: Tween<Offset>(
begin: const Offset(-1.0, 0.0),
Expand Down
4 changes: 2 additions & 2 deletions lib/get_navigation/src/routes/get_transition_mixin.dart
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ Cannot read the previousTitle for a route that has not yet been installed''',
Animation<double> animation,
Animation<double> secondaryAnimation,
Widget child, {
bool limitedSwipe = false,
bool limitedSwipe = true,
double initialOffset = 0,
}) {
// Check if the route has an animation that's currently participating
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit d809ae0

Please sign in to comment.