Is using return Future.value(false); after Navigator.pop(context) is the right way.
If I use
Navigator.pop(context, false) and after it
return Future.value(true);
The application will show black screen after pressing the back button, and no errors in the Logcat.
But if I use the same code without the Navigator.pop(context) or without the return Future.value(true); everything will be fine, using return Future.value(false); also works fine.
*Following a tutorial on Udemy that show return Future.value(true) is ok.