how to stop to Navigator.pop the last page blank page code example
Example: pop and push shows black screen which needs to be pressed back flutter
Navigator.pop(context);
Navigator.push(
context,
MaterialPageRoute(builder: (context) => SecondActivity()),
);