getx
getx copied to clipboard
iOS swipe back works with new PopScope widget and canPop: false
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:
- Create a screen with a
PopScope
withcanPop: false
wrapping the Scaffold and aGetPage
for it; - Go to this screen with Get.toNamed();
- Try to swipe back on iOS;
- 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
I had a similar problem and was forced to revert the code to WillPopScope
Popscope is so broken in many ways. Wilpopscope always workled like a charm.