Here we will see how to use PopScope context and backbutton. Here you have bloc or provider, you can access them from PopScope.
We need to use the onPopInvoked callback function. Within this function we can call our or use our context.
So with this you can use context to go back based on your navigation button