pop and push shows black screen which needs to be pressed back flutter
snippet in c

pop and push shows black screen which needs to be pressed back flutter

user3713

Navigator.pop(context);
Navigator.push(
            context,
            MaterialPageRoute(builder: (context) => SecondActivity()),
          );