Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Increasing swipe back threshold in flutter

Tags:

ios

flutter

I'm trying to implement a back feature like Instagram(where you can swipe back even with swiping from the middle of the screen on iOS). The current swipe back happens just by swiping from the most left/right part of the screen and I'm trying to make it easier to swipe back.

I understand that the question is a little ambiguous but I couldn't find code related to my problem and I think if you just push a page with the Navigator.push function in flutter and try to swipe back to the last page, you can understand what I mean.

like image 254
Amir Avatar asked Sep 14 '25 07:09

Amir


1 Answers

There is a package called swipeable_page_route.

Navigator.of(context).push(
  SwipeablePageRoute(
    builder: (context) => const FollowInfoScreen(),
  ),
);
like image 138
mali Avatar answered Sep 16 '25 00:09

mali