getx icon indicating copy to clipboard operation
getx copied to clipboard

iOS swipe back works with new PopScope widget and canPop: false

Open edisonlsm opened this issue 1 year ago • 3 comments

Describe the bug When using the new PopScope widget to replace the deprecated WillPopScope, even with canPop: false, the iOS swipe back gesture still works and the user can go back on the screen.

To Reproduce Steps to reproduce the behavior:

  1. Create a screen with a PopScope with canPop: false wrapping the Scaffold and a GetPage for it;
  2. Go to this screen with Get.toNamed();
  3. Try to swipe back on iOS;
  4. The screen swipes back;

Expected behavior The back gesture should not work, as it does not work today with WillPopScope

Flutter Version: 3.16.7

Getx Version: 4.6.6

Describe on which device you found the bug: iPhone 15 and iOS simulator

edisonlsm avatar Jan 24 '24 13:01 edisonlsm

I had a similar problem and was forced to revert the code to WillPopScope

leeyisoft avatar Mar 02 '24 03:03 leeyisoft

Popscope is so broken in many ways. Wilpopscope always workled like a charm.

alexprazeres avatar Mar 12 '24 12:03 alexprazeres