You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any way to override Android back button and iOS Swipe back gesture ?
Searching in previous issues, I find this one pretty close : #976
You suggest to use AutoRouteGuards for conditional redirecting.
I try it but I can't make it work. It's seems that onNavigation function of guard is only call when navigate, not when we use back button (which is the logical behavior in my opinion).
Am I missing something ?
The text was updated successfully, but these errors were encountered:
I used PopScope(canPop: false...) to prevent back gestures.
For some reason, my nested route in a tab needed to be refactored from an AutoRoute -> MaterialRoute on iOS because I was still able to navigate backwards w/ the gesture. Android was fine with just the PopScope.canPop == false.
Is there any way to override Android back button and iOS Swipe back gesture ?
Searching in previous issues, I find this one pretty close :
#976
You suggest to use
AutoRouteGuards
for conditional redirecting.I try it but I can't make it work. It's seems that
onNavigation
function of guard is only call when navigate, not when we use back button (which is the logical behavior in my opinion).Am I missing something ?
The text was updated successfully, but these errors were encountered: