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
When using the modular package and pushing to a new route, when swiping back to previous screen, the screen is wrapped in a PopScope widget, but the onPopInvoked method is not working.
Expected behavior
When swiping back, onPopInvoked should handle the callback.
I attempted to reproduce the issue on the latest versions of Flutter and f_modular but couldn't replicate it. It's worth noting that onPopInvoked has been replaced by onPopInvokedWithResult.
I navigated to the home screen and after click, moved to the swipe screen. When I click on back button, I received the following message in the console: 'should handle some callback after popping the route'.
// deprecated
onPopInvoked: (didPop) {
if (didPop) {
print('should handle some callback after popping the route');
}
}
// new
onPopInvokedWithResult: (didPop, result) {
if (didPop) {
print('should handle some callback after popping the route');
}
}
When using the modular package and pushing to a new route, when swiping back to previous screen, the screen is wrapped in a PopScope widget, but the onPopInvoked method is not working.
Expected behavior
When swiping back, onPopInvoked should handle the callback.
This is my code:
The text was updated successfully, but these errors were encountered: