'How to change IOS swipe back flutter?

right now the back button in ios is by swiping from left to right I want to change it to right to left. how can I do that?



Solution 1:[1]

I am guessing you want to create a right to left(RTL) application for example for arabic. Flutter supports the switch to RTL. Refer to the following:

right-to-left (RTL) in flutter

iOS back gesture for RTL Languages

Solution 2:[2]

Check this package: https://pub.dev/packages/swipe_effect

SwipeEffect(
      direction: TextDirection.rtl, 
      color: Colors.green.withAlpha(70),
      verticalTolerance: 1.0,
      startDeltaPx: 30,
      callbackDeltaRatio: 0.25,
      callback: () {
        // Navigator.pop(context);
      },
      child: ...,
    );

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 J.K.
Solution 2 Shadi Danhash