I was reviewing a code and happened to see a PopScope widget, which doesn’t have a onPopeInvoked argument called. Can someone explain what is it for?
PopScope widget in the code, and not getting the expected outcome in the web output.
I was reviewing a code and happened to see a PopScope widget, which doesn’t have a onPopeInvoked argument called. Can someone explain what is it for?
PopScope widget in the code, and not getting the expected outcome in the web output.
2
Answers
The PopScope widget you’re referring to might be a custom or third-party widget please share the code to understand it more clear
Thank you
canPop
parameter can be used to disable system back gestures.Defaults to true, meaning that back gestures happen as usual.
also use.
back button within your Flutter app, such as confirming an action
before navigating back or preventing the user from leaving a
particular screen.
Refer below small example:
Refer PopScope